Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Hybrid666

modal dialog box updates as fast as poss

This topic is 5220 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have a modeless dialog box created thru a call to DialogBoxParam() with a dialog procedure func to handle messages.. however, when active, shouldn''t this dialog box wait for a message of some kind before handling a message, cos at the mo it just gobbles all my cpu up by seemingly looping thru my dialog proc function as fast as poss.. iv tried putting WaitMessage() in there.. but im kinda guessing any help wud b much appreicated thanks, Hybrid

Share this post


Link to post
Share on other sites
Advertisement
CreateDialogParam() doesnt use Get/PeekMessage functions at all, its all automated from what i can see, and the fact that my program dont have one

it starts off its message loop with a call the init the dlg box HWND:

INT_PTR nResult = DialogBoxParam(hInstance, MAKEINTRESOURCE(DLG_OPTIONS), hWnd, (DLGPROC)DialogProc, (LPARAM)&someparameter);

there is no peek/getmessage - all i need to do is provide a switch(message) statement on the UINT message parameter to figure out whats going on

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!