| version 1.4, 2003/11/04 15:44:59 | 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 140  void np2class_windowtype(HWND hWnd, BYTE | Line 140  void np2class_windowtype(HWND hWnd, BYTE | 
 | } | } | 
 | SetWindowLong(hWnd, GWL_STYLE, style); | SetWindowLong(hWnd, GWL_STYLE, style); | 
 | SetWindowPos(hWnd, 0, 0, 0, 0, 0, | SetWindowPos(hWnd, 0, 0, 0, 0, 0, | 
| SWP_DRAWFRAME | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); | SWP_FRAMECHANGED | SWP_DRAWFRAME | | 
|  | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); | 
 | winloc_setclientsize(hWnd, | winloc_setclientsize(hWnd, | 
 | 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; |