The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Dark Schneider on April 18, 2005, 05:45:28 AM

Title: AppModal & Focus Rect.
Post by: Dark Schneider on April 18, 2005, 05:45:28 AM
Would you please tell me how to eliminate 'Focus' rectangle that appears when user click on buttons, checkboxes, etc.
And how to create 'AppModal' windows? I have a window (WNDCLASSEX) created on a dialog box and when move mouse
cursor off it onto its parent dialog box I can click on its child windows! please help me on this one...

I always have problems with GUI coding...
Title: Re: AppModal & Focus Rect.
Post by: Mark Jones on April 18, 2005, 07:24:50 PM
 I've found an easy way of eliminating the focus rectangles from buttons - just use the EasyCode IDE, which can be found at http://www.masmforum.com/simple/index.php?board=28.0 - it has a simple checkbox in the visual editor to disable control focus. Only problem is that disabling focus makes the program very difficult to use without a mouse.

I am not sure about the appmodal windows and WINDCLASSEX. Haven't gotten that far myself yet. :)
Title: Re: AppModal & Focus Rect.
Post by: pbrennick on April 18, 2005, 09:48:04 PM
Dark Schneider,
Use DS_MODALFRAME to make a MODAL dialog box, it is in win32.hlp.

Hope this helps,
Paul