sCreateApplication - The Most Important Struct
This structure houses the most important data for your application, things from X and Y coordinates to the title of the application. Without further adiue, here is the struct as seen in skygi/skygi.h:
typedef struct sCreateApplication { char ucApplicationName[255]; int uiX; int uiY; unsigned int uiWidth; unsigned int uiHeight; void *fwndClient; unsigned int uiStyleApplication; unsigned int uiStyleFrame; unsigned int uiStyleTitle; unsigned int uiStyleMenu; unsigned int uiStyleBar; unsigned int uiStyleClient; unsigned int uiBackGroundColor; unsigned int uiApplicationIcon; HANDLE pFrameMenu; unsigned int uiReserved[128]; void (*PostCreateWindowBitmap)(HANDLE hWnd, void *pGCBuf); } sCreateApplication;
Explanations:
Member Name | Description | Possible Values |
---|---|---|
ucApplicationName[] | Name of the Application to be displayed in the title bar | The name of your application. If you do not input anything for this value the program will not show up in the Panel. |
uiX | X coordinate of top left corner at runtime | |
uiY | Y coordinate of top left corner at runtime | |
uiWidth | Window width in pixels | |
uiHeight | Window width in pixels | |
*fwndClient | Name of event handler function | |
uiStyleApplication | General settings | WF_HAS_MENU, WF_HAS_STATUSBAR, WF_NO_TITLE, WF_POPUP, WF_DESKTOP |
uiStyleFrame | Describes how the frame of the Window will be displayed and will behave | WF_FRAME_NO_ROUND_EDGES_TOP, WF_FRAME_NO_ROUND_EDGES_BOTTOM, WF_FRAME_ROUND_EDGES_BACKGROUND_BLACK, WF_FRAME_NO_SHADOW, WF_FRAME_NO_FRAME, WF_FRAME_ROUND_EDGES_BOTTOM, WF_FRAME_NOT_MOVEABLE, WF_FRAME_OWN_SHAPE, WF_FRAME_THIN |
uiStyleTitle | Describes how and which buttons will be displayed | WF_TITLE_NO_MAXIMIZE, WF_TITLE_NO_MINIMIZE, WF_TITLE_NO_CLOSE, WF_TITLE_NO_BUTTONS, WF_TITLE_SMALL_TITLE |
uiStyleMenu | ||
uiStyleBar | ||
uiStyleClient | WF_DONT_ERASE_BACKGROUND | |
uiBackGroundColor | ||
uiApplicationIcon | ||
*pFrameMenu | Name of pointer to top level menu |