Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / My MainLoop

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. My MainLoop
#7425
Posted by: 2005-11-09 05:54:48
Hi. I'm sorry, but I speek in english only little. My problem is:

What do I can to translate messages in wxApp::MainLoop function, like

bool bQuit = false;
    MSG messages;

    while (!bQuit)
    {
        /* check for messages */
        if (PeekMessage (&messages, NULL, 0, 0, PM_REMOVE))
        {
            /* handle or dispatch messages */
            if (messages.message == WM_QUIT)
            {
                bQuit = TRUE;
            }
            else
            {
                TranslateMessage (&messages);
                DispatchMessage  (&messages);
            }
        }
        else
        {
            // this is a place, where i processing my animation in OpenGL
        }
    }
in WinApi, thanks ;)
Message2. Re: My MainLoop
#7661
Posted by: 2005-12-11 01:23:19
I dont dont now whi yo do is more easy do setframeexit(true) wx close aplication whi who close the main frame
setmainframe(myframe).
This is the way to drive wxapp.-
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥289.00 ·
 
 
¥1,068.00 ·
 
 
¥890.00 ·
 
 
¥880.00 ·
 
 
¥296.00 ·
 
 
¥294.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0