Diff for /np2/win9x/dialog/d_screen.cpp between versions 1.15 and 1.18

version 1.15, 2007/11/11 07:11:28 version 1.18, 2011/03/07 09:54:11
Line 1 Line 1
 #include        "compiler.h"  /**
 #include        <commctrl.h>   * @file        d_screen.cpp
 #include        <prsht.h>   * @brief       Screen configure dialog procedure
 #include        "strres.h"   *
 #include        "resource.h"   * @author      $Author$
 #include        "np2.h"   * @date        $Date$
 #include        "oemtext.h"   */
 #include        "scrnmng.h"  
 #include        "sysmng.h"  #include "compiler.h"
 #include        "np2class.h"  #include <commctrl.h>
 #include        "dialog.h"  #include <prsht.h>
 #include        "dialogs.h"  #include "strres.h"
 #include        "pccore.h"  #include "resource.h"
 #include        "iocore.h"  #include "np2.h"
 #include        "scrndraw.h"  #include "oemtext.h"
 #include        "palettes.h"  #include "scrnmng.h"
   #include "sysmng.h"
   #include "np2class.h"
 static const TCHAR str_scropt[] = _T("Screen option");  #include "dialog.h"
   #include "dialogs.h"
   #include "pccore.h"
   #include "iocore.h"
   #include "scrndraw.h"
   #include "palettes.h"
   
   #if !defined(__GNUC__)
   #pragma comment(lib, "comctl32.lib")
   #endif  // !defined(__GNUC__)
   
 static LRESULT CALLBACK Scropt1DlgProc(HWND hWnd, UINT msg,  static LRESULT CALLBACK Scropt1DlgProc(HWND hWnd, UINT msg,
                                                                                                         WPARAM wp, LPARAM lp) {                                                                                                          WPARAM wp, LPARAM lp) {
Line 276  static LRESULT CALLBACK ScroptFullScreen Line 284  static LRESULT CALLBACK ScroptFullScreen
                                                                                                 WPARAM wParam, LPARAM lParam)                                                                                                  WPARAM wParam, LPARAM lParam)
 {  {
         UINT8   c;          UINT8   c;
         UINT    uUpdate;  
   
         switch(uMsg)          switch(uMsg)
         {          {
Line 319  static LRESULT CALLBACK ScroptFullScreen Line 326  static LRESULT CALLBACK ScroptFullScreen
                                 if (np2oscfg.fscrnmod != c)                                  if (np2oscfg.fscrnmod != c)
                                 {                                  {
                                         np2oscfg.fscrnmod = c;                                          np2oscfg.fscrnmod = c;
                                         uUpdate |= SYS_UPDATEOSCFG;                                          sysmng_update(SYS_UPDATEOSCFG);
                                 }                                  }
                                 sysmng_update(uUpdate);  
                                 return(TRUE);                                  return(TRUE);
                         }                          }
                         break;                          break;
Line 329  static LRESULT CALLBACK ScroptFullScreen Line 335  static LRESULT CALLBACK ScroptFullScreen
         return(FALSE);          return(FALSE);
 }  }
   
 void dialog_scropt(HWND hWnd) {  void dialog_scropt(HWND hWnd)
   {
         HINSTANCE               hInstance;          HINSTANCE               hInstance;
         PROPSHEETPAGE   psp;          PROPSHEETPAGE   psp;
         PROPSHEETHEADER psh;          PROPSHEETHEADER psh;
         HPROPSHEETPAGE  hpsp[4];          HPROPSHEETPAGE  hpsp[4];
           TCHAR                   szTitle[128];
   
         hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);          hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
   
Line 359  void dialog_scropt(HWND hWnd) { Line 366  void dialog_scropt(HWND hWnd) {
         psp.pfnDlgProc = (DLGPROC)ScroptFullScreenDlgProc;          psp.pfnDlgProc = (DLGPROC)ScroptFullScreenDlgProc;
         hpsp[3] = CreatePropertySheetPage(&psp);          hpsp[3] = CreatePropertySheetPage(&psp);
   
           loadstringresource(IDS_SCREENOPTION, szTitle, NELEMENTS(szTitle));
   
         ZeroMemory(&psh, sizeof(psh));          ZeroMemory(&psh, sizeof(psh));
         psh.dwSize = sizeof(PROPSHEETHEADER);          psh.dwSize = sizeof(PROPSHEETHEADER);
         psh.dwFlags = PSH_NOAPPLYNOW | PSH_USEHICON | PSH_USECALLBACK;          psh.dwFlags = PSH_NOAPPLYNOW | PSH_USEHICON | PSH_USECALLBACK;
Line 367  void dialog_scropt(HWND hWnd) { Line 376  void dialog_scropt(HWND hWnd) {
         psh.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON2));          psh.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON2));
         psh.nPages = 4;          psh.nPages = 4;
         psh.phpage = hpsp;          psh.phpage = hpsp;
         psh.pszCaption = str_scropt;          psh.pszCaption = szTitle;
         psh.pfnCallback = np2class_propetysheet;          psh.pfnCallback = np2class_propetysheet;
         PropertySheet(&psh);          PropertySheet(&psh);
         InvalidateRect(hWnd, NULL, TRUE);          InvalidateRect(hWnd, NULL, TRUE);

Removed from v.1.15  
changed lines
  Added in v.1.18


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