|
|
| version 1.69, 2007/01/08 01:16:59 | version 1.70, 2007/01/08 07:52:01 |
|---|---|
| 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 1521 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); |