mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-25 20:33:13 +00:00
31 lines
610 B
Plaintext
31 lines
610 B
Plaintext
|
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,
|
|||
|
20,40,200,140);
|
|||
|
guiSetProp(hWND, WND_P_pTITLE, "Window title");
|
|||
|
guiSetProp(hWND, WND_P_pSTATUS, "Status bar");
|
|||
|
// guiSetProp(hWND, WND_P_BGCOLOR, C.WHITE);
|
|||
|
|
|||
|
guiShowWnd(hWND);
|
|||
|
|
|||
|
do {
|
|||
|
if (guiGetMsg(&msg))
|
|||
|
{
|
|||
|
switch msg.type {
|
|||
|
case MSG_T_WND:
|
|||
|
break;
|
|||
|
}
|
|||
|
} while (!bQuit)
|
|||
|
|
|||
|
guiDestroyWnd(hWND);
|
|||
|
}
|
|||
|
MAN
|
|||
|
TEXT root/ctest/testgui.c
|