|
|
| version 1.5, 2004/01/22 01:10:05 | version 1.6, 2004/05/23 15:01:45 |
|---|---|
| Line 116 void np2class_enablemenu(HWND hWnd, BOOL | Line 116 void np2class_enablemenu(HWND hWnd, BOOL |
| void np2class_windowtype(HWND hWnd, BYTE type) { | void np2class_windowtype(HWND hWnd, BYTE type) { |
| RECT rect; | RECT rect; |
| DWORD style; | DWORD style; |
| GetClientRect(hWnd, &rect); | GetClientRect(hWnd, &rect); |
| style = GetWindowLong(hWnd, GWL_STYLE); | style = GetWindowLong(hWnd, GWL_STYLE); |
| Line 146 void np2class_windowtype(HWND hWnd, BYTE | Line 146 void np2class_windowtype(HWND hWnd, BYTE |
| rect.right - rect.left, rect.bottom - rect.top); | rect.right - rect.left, rect.bottom - rect.top); |
| } | } |
| void np2class_frametype(HWND hWnd, BYTE thick) { | |
| RECT rect; | |
| DWORD style; | |
| GetClientRect(hWnd, &rect); | |
| style = GetWindowLong(hWnd, GWL_STYLE); | |
| if (thick) { | |
| style |= WS_THICKFRAME; | |
| } | |
| else { | |
| style &= ~WS_THICKFRAME; | |
| } | |
| SetWindowLong(hWnd, GWL_STYLE, style); | |
| SetWindowPos(hWnd, 0, 0, 0, 0, 0, | |
| SWP_FRAMECHANGED | SWP_DRAWFRAME | | |
| SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); | |
| winloc_setclientsize(hWnd, | |
| rect.right - rect.left, rect.bottom - rect.top); | |
| } | |
| HMENU np2class_gethmenu(HWND hWnd) { | HMENU np2class_gethmenu(HWND hWnd) { |
| HMENU ret; | HMENU ret; |