|
|
|
|
![]() ![]() |
Feb 19 2006, 10:28 AM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 68 Joined: 23-May 05 Member No.: 5,355 |
Here is my problem, I want to create a modal dialog box (application modal) that has a keyboard accelerator assign to it. I just don't know where to put the TranslateAccelerator() function with regards to modal dialog box since the message loop is inside the function DialogBox(). So how to I make a modal dialog box which has a keyboard accelerator assign to it?
|
|
|
|
Jan 25 2008, 12:28 PM
Post
#2
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
shut up
Win32 Api: Modal Dialog Box Problem Use flag variable to control the behavior of opened dialogs; Like this; //gloable initialization Int flag =1; //before showing a dialgobox, check this condtion If(flag) { DialogBox(..WS_SHOW); flag=0; } // when you click close[x]option or cancle button of the dialogbox // before closing it, unset this flag variable Flag=1; Regards A.B.See. Class 5th grade -imran |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 7th October 2008 - 01:49 AM |