root/lang/objective-cplusplus/i3/trunk/src/gui-windows/Gui.cpp @ 32287

Revision 32287, 0.7 kB (checked in by saturday06, 4 years ago)

ntyaoui

Line 
1#include <PrecompiledHeaders.h>
2#include "../Common.h"
3
4namespace i3
5{
6int global_loop()
7{
8    MSG msg = {};
9    for (;;)
10    {
11        BOOL result = GetMessage(&msg, NULL, 0, 0);
12        if (!result)
13        {
14            break;
15        }
16        else if (result == -1)
17        {
18            mil_abort << msg.message;
19            break;
20        }
21
22        TranslateMessage(&msg);
23        DispatchMessage(&msg);
24    }
25    return (int)msg.wParam;
26}
27void alert(string message)
28{
29    MessageBox(NULL, message.c_str(), _("alert"), MB_OK);
30}
31exit_status init_gui_global_data(int argc, const char** argv)
32{
33    init_hInstance();
34    return 0;
35}
36}
37
Note: See TracBrowser for help on using the browser.