Diff for /np2/win9x/dialog/np2class.cpp between versions 1.4 and 1.8

version 1.4, 2003/11/04 15:44:59 version 1.8, 2005/02/09 20:11:36
Line 5 Line 5
 #include        "np2class.h"  #include        "np2class.h"
   
   
 const char np2dlgclass[] = "np2dialog";  const OEMCHAR np2dlgclass[] = OEMTEXT("np2dialog");
   
   
 void np2class_initialize(HINSTANCE hinst) {  void np2class_initialize(HINSTANCE hinst) {
Line 114  void np2class_enablemenu(HWND hWnd, BOOL Line 114  void np2class_enablemenu(HWND hWnd, BOOL
         }          }
 }  }
   
 void np2class_windowtype(HWND hWnd, BYTE type) {  void np2class_windowtype(HWND hWnd, UINT8 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, 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 np2class_gethmenu(HWND hWnd) {
   
         HMENU   ret;          HMENU   ret;

Removed from v.1.4  
changed lines
  Added in v.1.8


RetroPC.NET-CVS <cvs@retropc.net>