--- np2/win9x/dialog/np2class.cpp 2003/11/04 15:44:59 1.4 +++ np2/win9x/dialog/np2class.cpp 2005/02/07 15:39:28 1.7 @@ -114,10 +114,10 @@ void np2class_enablemenu(HWND hWnd, BOOL } } -void np2class_windowtype(HWND hWnd, BYTE type) { +void np2class_windowtype(HWND hWnd, UINT8 type) { - RECT rect; - DWORD style; + RECT rect; + DWORD style; GetClientRect(hWnd, &rect); style = GetWindowLong(hWnd, GWL_STYLE); @@ -140,11 +140,35 @@ void np2class_windowtype(HWND hWnd, BYTE } SetWindowLong(hWnd, GWL_STYLE, style); 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, rect.right - rect.left, rect.bottom - rect.top); } +void np2class_frametype(HWND hWnd, UINT8 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 ret;