1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
.
.
.
void BsolWindow::BsolCreateWindowEx (BsolWindow * prntWnd_p, int formFlg_p, int wndId_p,
LPCWSTR wndTitle_p, int x_p, int y_p, int width_p, int hight_p,
LPVOID objPtr_p) {
wExStyle_v = WS_EX_APPWINDOW;
if (formFlg_p == 0) {
wStyle_v = WS_CLIPCHILDREN
| WS_OVERLAPPEDWINDOW
| WS_VSCROLL
;
}
// The window is a form window (child window)
else {
// Set the parent window
phWnd_v = prntWnd_p->hWnd;
if (formFlg_p == 1) {
wStyle_v = WS_CHILDWINDOW
| WS_TILEDWINDOW
| WS_OVERLAPPED
;
}
else if (formFlg_p == 2) {
wStyle_v = WS_CHILDWINDOW
| WS_OVERLAPPED
| WS_SYSMENU
| WS_CAPTION
| WS_SIZEBOX
;
}
}
this->hWnd = CreateWindowEx (wExStyle_v, this->wndClass.lpszClassName,
wndTitle_p, wStyle_v, x_p, y_p, width_p, hight_p,
phWnd_v, (HMENU)wndId_p, this->hInst, NULL);
.
.
.
|