Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Win32 Api: Modal Dialog Box Problem, C++ Win32 API Programming
saga
post Feb 19 2006, 10:28 AM
Post #1


Member [ Level 2 ]
Group Icon

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?
Go to the top of the page
 
+Quote Post
iGuest
post Jan 25 2008, 12:28 PM
Post #2


Newbie [ Level 1 ]
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. About C Programming(5)
  2. Help: C++ And Midi Programming Under Windows(0)
  3. Networking Programming - C++ - Ms Windows(2)
  4. Programming The Sound Card In Windows(0)
  5. Programming Games With C/c++ And Sdl(1)


 



- Lo-Fi Version Time is now: 7th October 2008 - 01:49 AM