2022-10-11 06:20:24 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
|
|
|
|
#include <libgui.h>
|
|
|
|
|
|
|
|
|
|
MSG msg;
|
|
|
|
|
int bQuit=0;
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
short int hWND = guiNewWnd(WND_F_RESIZE+WND_F_MOVE+WND_F_CLOSE+WND_F_MAX+WND_F_MIN,
|
2022-10-25 06:05:54 +00:00
|
|
|
|
20,20,200,100);
|
|
|
|
|
guiSetProp(hWND, WND_P_pTITLE, "Libgui C API");
|
2022-10-11 06:20:24 +00:00
|
|
|
|
guiSetProp(hWND, WND_P_pSTATUS, "Status bar");
|
2022-12-07 07:02:29 +00:00
|
|
|
|
guiSetProp(hWND, WND_P_BGCOLOR, C_WHITE);
|
|
|
|
|
guiSetProp(hWND, WND_P_pPTR, PTR_T_CROSS);
|
2022-10-11 06:20:24 +00:00
|
|
|
|
guiShowWnd(hWND);
|
|
|
|
|
|
|
|
|
|
do {
|
|
|
|
|
if (guiGetMsg(&msg))
|
|
|
|
|
{
|
2022-10-25 06:05:54 +00:00
|
|
|
|
// switch msg.type {
|
|
|
|
|
// case MSG_T_WND:
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
}
|
2022-10-11 06:20:24 +00:00
|
|
|
|
} while (!bQuit)
|
|
|
|
|
|
|
|
|
|
guiDestroyWnd(hWND);
|
|
|
|
|
}
|
|
|
|
|
MAN
|
|
|
|
|
TEXT root/ctest/testgui.c
|