Nov 25, 2009

Win32 Api: Modal Dialog Box Problem - C++ Win32 API Programming

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Programming General > C, C++ & Visual C++

Win32 Api: Modal Dialog Box Problem - C++ Win32 API Programming

saga
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?

Comment/Reply (w/o sign-up)

FeedBacker
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

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : win32, api, modal, dialog, box, problem, c, win32, api, programming

  1. Programming Games With C/c++ And Sdl
    Great tutorials (1)
  2. Programming The Sound Card In Windows
    (0)
    Hi, I need to implement a simple sound application which recieves audio from the mic input and plays
    back with a delay t (should be user determined). The recording should not stop during playback,
    that is the sound card should run in full-duplex mode. Can anybody tell me how I can do it? I am
    using VC++ 6.0 for the purpose.....
  3. Networking Programming - C++ - Ms Windows
    Please recommend me a eBook or Document (2)
    I need to write some networking library in C++. I know C++, I know networking programming on Linux.
    But not, I'm working in a networking project on Windows. I may need an ebook or some reference
    about this. 'Cause I'm new to Windows /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> Can you recommend me a eBook, just about C++
    networking, on Windows? I've been Googling for that, but seems that I'm not lucky enough.....
  4. Help: C++ And Midi Programming Under Windows
    Programming for MIDI in Borland C++ 4.52 (1)
    Hi, I am starting an opensource Midi Squencer / Controller. I have already learned how to get
    info on all the Midi devices on the system, and I have figured out how to send data to a Midi
    device. My next step is figuring how to get Midi input. I have been trying everything in the help
    files, but nothing I have done has worked. I am using the mmsystem.h header for all my low-level
    Midi communication. It connects to the mmsystem.dll that is standard with windows.... so it should
    be accessable to anyone with C++. Is there anyone out there that would like to see a qu....
  5. C Dll Programming For Mirc
    Programming in C for a mIRC DLL (0)
    Hey, I'm trying to write a DLL to hook into mIRC. I've got everything working except the
    LoadDll & UnloadDll functions. I took the examples right out of the mIRC help file, but I can't
    seem to get them to work. Has anyone else tried programming for mIRC, and run into this problem?
    Please help if you have. Btw, I'm using Borland C++ 4.52. Thanx, /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> YB /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  6. About C Programming
    I need serious help (5)
    Well I need with C programming, In my school we have a robotics team which each year we build a
    robot and compete. But we have a deadline and by the time the robot is complete we don't have
    time for the programming. So I want something to do thist summer. And Im interested in computers and
    want to learn programming, So can somebody please tell me a good site where I can learn it, or
    Tutorial. Thanks you -----Moved from Tutorials section to Programming General > C-----szupie ....
  7. C++ Win32 Encapsulation
    (3)
    Okay, this should be my last question of the day, but... I once found a decent little skeleton
    prog that included simple MFC-like classes to organise the dirty work behind windows... I would
    work on my own but -> I'm lazy & I know it's been done... And now that I search I am unable
    to come up with anything... I use DevC++ because a.) it's free, and b.) it looks "cute" and
    also, I do not want to base any program on the MFC if at all possible... If anyone knows of a good
    source for something of this nature... you know what to do... BTW - i think i saw th....

    1. Looking for win32, api, modal, dialog, box, problem, c, win32, api, programming

See Also,

*SIMILAR VIDEOS*
Searching Video's for win32, api, modal, dialog, box, problem, c, win32, api, programming
advertisement



Win32 Api: Modal Dialog Box Problem - C++ Win32 API Programming

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com