Diff for /np2/win9x/np2.cpp between versions 1.68 and 1.70

version 1.68, 2006/12/24 13:21:37 version 1.70, 2007/01/08 07:52:01
Line 68  static TCHAR  szClassName[] = _T("NP2-Ma Line 68  static TCHAR  szClassName[] = _T("NP2-Ma
                 NP2OSCFG        np2oscfg = {                  NP2OSCFG        np2oscfg = {
                                                 OEMTEXT(PROJECTNAME) OEMTEXT(PROJECTSUBNAME),                                                  OEMTEXT(PROJECTNAME) OEMTEXT(PROJECTSUBNAME),
                                                 OEMTEXT("NP2"),                                                  OEMTEXT("NP2"),
                                                 CW_USEDEFAULT, CW_USEDEFAULT, 1, 1, 0, 1, 0, 0,                                                  CW_USEDEFAULT, CW_USEDEFAULT, 1, 1, 0, 0, 0, 1, 0, 0,
                                                 0, 0, KEY_UNKNOWN, 0,                                                  0, 0, KEY_UNKNOWN, 0,
                                                 0, 0, 0, {1, 2, 2, 1},                                                  0, 0, 0, {1, 2, 2, 1},
                                                 {5, 0, 0x3e, 19200,                                                  {5, 0, 0x3e, 19200,
Line 80  static TCHAR  szClassName[] = _T("NP2-Ma Line 80  static TCHAR  szClassName[] = _T("NP2-Ma
                                                 {0, 0, 0x3e, 19200,                                                  {0, 0, 0x3e, 19200,
                                                  OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},                                                   OEMTEXT(""), OEMTEXT(""), OEMTEXT(""), OEMTEXT("")},
                                                 0xffffff, 0xffbf6a, 0, 0,                                                  0xffffff, 0xffbf6a, 0, 0,
                                                 0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};                                                  0, 1, 0, 9801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
   
                 OEMCHAR         fddfolder[MAX_PATH];                  OEMCHAR         fddfolder[MAX_PATH];
                 OEMCHAR         hddfolder[MAX_PATH];                  OEMCHAR         hddfolder[MAX_PATH];
Line 360  static void np2popup(HWND hWnd, LPARAM l Line 360  static void np2popup(HWND hWnd, LPARAM l
         HMENU   hMenu;          HMENU   hMenu;
         POINT   pt;          POINT   pt;
   
         mainmenu = (HMENU)GetWindowLong(hWnd, NP2GWL_HMENU);          mainmenu = (HMENU)GetWindowLongPtr(hWnd, NP2GWLP_HMENU);
         if (mainmenu == NULL) {          if (mainmenu == NULL) {
                 return;                  return;
         }          }
Line 375  static void np2popup(HWND hWnd, LPARAM l Line 375  static void np2popup(HWND hWnd, LPARAM l
   
 static void np2cmd(HWND hWnd, UINT16 cmd) {  static void np2cmd(HWND hWnd, UINT16 cmd) {
   
         HINSTANCE       hInst;          HINSTANCE       hinst;
         UINT            update;          UINT            update;
         BOOL            b;          BOOL            b;
   
         hInst = GetWindowInst(hWnd);          hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
         update = 0;          update = 0;
         switch(cmd) {          switch(cmd) {
                 case IDM_RESET:                  case IDM_RESET:
Line 406  static void np2cmd(HWND hWnd, UINT16 cmd Line 406  static void np2cmd(HWND hWnd, UINT16 cmd
                 case IDM_CONFIG:                  case IDM_CONFIG:
                         winuienter();                          winuienter();
                         sstpmsg_config();                          sstpmsg_config();
                         DialogBox(hInst, MAKEINTRESOURCE(IDD_CONFIG),                          DialogBox(hinst, MAKEINTRESOURCE(IDD_CONFIG),
                                                                         hWnd, (DLGPROC)CfgDialogProc);                                                                          hWnd, (DLGPROC)CfgDialogProc);
                         if (!scrnmng_isfullscreen()) {                          if (!scrnmng_isfullscreen()) {
                                 UINT8 thick;                                  UINT8 thick;
Line 847  static void np2cmd(HWND hWnd, UINT16 cmd Line 847  static void np2cmd(HWND hWnd, UINT16 cmd
   
                 case IDM_MPUPC98:                  case IDM_MPUPC98:
                         winuienter();                          winuienter();
                         DialogBox(hInst, MAKEINTRESOURCE(IDD_MPUPC98),                          DialogBox(hinst, MAKEINTRESOURCE(IDD_MPUPC98),
                                                                                         hWnd, (DLGPROC)MidiDialogProc);                                                                                          hWnd, (DLGPROC)MidiDialogProc);
                         winuileave();                          winuileave();
                         break;                          break;
Line 895  static void np2cmd(HWND hWnd, UINT16 cmd Line 895  static void np2cmd(HWND hWnd, UINT16 cmd
   
                 case IDM_CALENDAR:                  case IDM_CALENDAR:
                         winuienter();                          winuienter();
                         DialogBox(hInst, MAKEINTRESOURCE(IDD_CALENDAR),                          DialogBox(hinst, MAKEINTRESOURCE(IDD_CALENDAR),
                                                                                         hWnd, (DLGPROC)ClndDialogProc);                                                                                          hWnd, (DLGPROC)ClndDialogProc);
                         winuileave();                          winuileave();
                         break;                          break;
Line 943  static void np2cmd(HWND hWnd, UINT16 cmd Line 943  static void np2cmd(HWND hWnd, UINT16 cmd
                         sstpmsg_about();                          sstpmsg_about();
                         if (sstp_result() != SSTP_SENDING) {                          if (sstp_result() != SSTP_SENDING) {
                                 winuienter();                                  winuienter();
                                 DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUT),                                  DialogBox(hinst, MAKEINTRESOURCE(IDD_ABOUT),
                                                                 hWnd, (DLGPROC)AboutDialogProc);                                                                  hWnd, (DLGPROC)AboutDialogProc);
                                 winuileave();                                  winuileave();
                         }                          }
Line 1131  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1131  LRESULT CALLBACK WndProc(HWND hWnd, UINT
                                 BITMAP          bmp;                                  BITMAP          bmp;
                                 HDC                     hmdc;                                  HDC                     hmdc;
                                 HBRUSH          hbrush;                                  HBRUSH          hbrush;
                                 hinst = GetWindowInst(hWnd);                                  hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
                                 GetClientRect(hWnd, &rect);                                  GetClientRect(hWnd, &rect);
                                 width = rect.right - rect.left;                                  width = rect.right - rect.left;
                                 height = rect.bottom - rect.top;                                  height = rect.bottom - rect.top;
Line 1271  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1271  LRESULT CALLBACK WndProc(HWND hWnd, UINT
 #if defined(SUPPORT_DCLOCK)  #if defined(SUPPORT_DCLOCK)
                                 else {                                  else {
                                         POINT p;                                          POINT p;
                                         if ((GetCursorPos(&p)) && (p.y >= 466)) {                                          if ((GetCursorPos(&p)) &&
                                                   (scrnmng_isdispclockclick(&p))) {
                                                 np2oscfg.clk_x++;                                                  np2oscfg.clk_x++;
                                                 sysmng_update(SYS_UPDATEOSCFG);                                                  sysmng_update(SYS_UPDATEOSCFG);
                                                 dclock_reset();                                                  dclock_reset();
Line 1302  LRESULT CALLBACK WndProc(HWND hWnd, UINT Line 1303  LRESULT CALLBACK WndProc(HWND hWnd, UINT
 #if defined(SUPPORT_DCLOCK)  #if defined(SUPPORT_DCLOCK)
                                 else {                                  else {
                                         POINT p;                                          POINT p;
                                         if ((GetCursorPos(&p)) && (p.y >= 466) &&                                          if ((GetCursorPos(&p)) &&
                                                                                                 (np2oscfg.clk_x)) {                                                  (scrnmng_isdispclockclick(&p)) &&
                                                   (np2oscfg.clk_x)) {
                                                 np2oscfg.clk_fnt++;                                                  np2oscfg.clk_fnt++;
                                                 sysmng_update(SYS_UPDATEOSCFG);                                                  sysmng_update(SYS_UPDATEOSCFG);
                                                 dclock_reset();                                                  dclock_reset();
Line 1519  int WINAPI WinMain(HINSTANCE hInstance,  Line 1521  int WINAPI WinMain(HINSTANCE hInstance, 
                 wc.style = CS_BYTEALIGNCLIENT | CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;                  wc.style = CS_BYTEALIGNCLIENT | CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS;
                 wc.lpfnWndProc = WndProc;                  wc.lpfnWndProc = WndProc;
                 wc.cbClsExtra = 0;                  wc.cbClsExtra = 0;
                 wc.cbWndExtra = NP2GWL_SIZE;                  wc.cbWndExtra = NP2GWLP_SIZE;
                 wc.hInstance = hInst;                  wc.hInstance = hInst;
                 wc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON1));                  wc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON1));
                 wc.hCursor = LoadCursor(NULL, IDC_ARROW);                  wc.hCursor = LoadCursor(NULL, IDC_ARROW);

Removed from v.1.68  
changed lines
  Added in v.1.70


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