Lines Matching defs:hWnd

637 BOOL CALLBACK DlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
645 palette_check(hWnd);
660 BOOL CALLBACK DlgProc2(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
664 SetDlgItemText(hWnd, IDC_ABOUT_EDIT, version_string);
668 palette_check(hWnd);
677 //SendDlgItemMessage(hWnd, IDC_ABOUT_EDIT, EM_SETSEL, -1, 0);
678 SetFocus(GetDlgItem(hWnd, IDC_ABOUT_BITMAP));
684 EndDialog(hWnd, LOWORD(wParam));
695 BOOL CALLBACK PropDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
705 SendDlgItemMessage(hWnd, IDC_PAUSE, BM_SETCHECK,
707 SendDlgItemMessage(hWnd, IDC_DEBUG, BM_SETCHECK,
709 SendDlgItemMessage(hWnd, IDC_COMM, BM_SETCHECK,
711 SendDlgItemMessage(hWnd, IDC_REVERSEVIDEO, BM_SETCHECK,
713 SendDlgItemMessage(hWnd,IDC_AUTOBOOT,BM_SETCHECK,pref.autoboot,0);
717 SendDlgItemMessage(hWnd, IDC_BOOT_TIME, CB_ADDSTRING,
723 SetDlgItemText(hWnd,IDC_BOOT_TIME,tempbuf);
727 SendDlgItemMessage(hWnd, IDC_BOOT_TIME, CB_ADDSTRING,
732 hwnd = GetDlgItem(hWnd,IDC_BOOT_TIME);
738 palette_check(hWnd);
745 SendDlgItemMessage(hWnd,IDC_AUTOBOOT,BM_SETCHECK,
748 hwnd = GetDlgItem(hWnd,IDC_BOOT_TIME);
753 if (SendDlgItemMessage(hWnd, IDC_PAUSE,
761 if (SendDlgItemMessage(hWnd, IDC_DEBUG,
769 if (SendDlgItemMessage(hWnd, IDC_COMM,
777 if (SendDlgItemMessage(hWnd, IDC_REVERSEVIDEO,
785 if (SendDlgItemMessage(hWnd, IDC_AUTOBOOT,
792 GetDlgItemText(hWnd,IDC_BOOT_TIME,tempbuf,PATHBUFLEN);
795 EndDialog(hWnd, 0);
798 EndDialog(hWnd,0);
835 UpdateFbDlg(HWND hWnd, struct fb_setting *fbs, int direction)
844 SetDlgItemText(hWnd, IDC_FB_NAME, fbs->name);
855 i = SendDlgItemMessage(hWnd, IDC_FB_TYPE, CB_FINDSTRINGEXACT,
857 SendDlgItemMessage(hWnd, IDC_FB_TYPE, CB_SETCURSEL, i, 0);
860 SetDlgItemText(hWnd, IDC_FB_ADDR, tmpbuf);
862 SetDlgItemText(hWnd, IDC_FB_WIDTH, tmpbuf);
864 SetDlgItemText(hWnd, IDC_FB_HEIGHT, tmpbuf);
866 SetDlgItemText(hWnd, IDC_FB_LINEBYTES, tmpbuf);
868 SetDlgItemText(hWnd, IDC_FB_CPU, tmpbuf);
870 SetDlgItemText(hWnd, IDC_FB_MACHINE, tmpbuf);
873 GetDlgItemText(hWnd, IDC_FB_NAME, fbs->name, PATHBUFLEN);
874 type = SendDlgItemMessage(hWnd, IDC_FB_TYPE,
876 type = SendDlgItemMessage(hWnd, IDC_FB_TYPE,
878 GetDlgItemText(hWnd, IDC_FB_WIDTH, tmpbuf, sizeof(tmpbuf));
880 GetDlgItemText(hWnd, IDC_FB_HEIGHT, tmpbuf, sizeof(tmpbuf));
882 GetDlgItemText(hWnd, IDC_FB_LINEBYTES, tmpbuf, sizeof(tmpbuf));
884 GetDlgItemText(hWnd, IDC_FB_ADDR, tmpbuf, sizeof(tmpbuf));
886 GetDlgItemText(hWnd, IDC_FB_CPU, tmpbuf, sizeof(tmpbuf));
888 GetDlgItemText(hWnd, IDC_FB_MACHINE, tmpbuf, sizeof(tmpbuf));
907 BOOL CALLBACK FbDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
917 idx = SendDlgItemMessage(hWnd, IDC_FB_NAME,
920 SendDlgItemMessage(hWnd, IDC_FB_NAME,
925 SendDlgItemMessage(hWnd, IDC_FB_WIDTH, CB_ADDSTRING,
927 SendDlgItemMessage(hWnd, IDC_FB_HEIGHT, CB_ADDSTRING,
932 SendDlgItemMessage(hWnd, IDC_FB_LINEBYTES,
937 idx = SendDlgItemMessage(hWnd, IDC_FB_TYPE,
940 SendDlgItemMessage(hWnd, IDC_FB_TYPE, CB_SETITEMDATA,
943 UpdateFbDlg(hWnd, &fb_settings[0], UPDATE_DLGBOX);
948 SendDlgItemMessage(hWnd, IDC_FB_ADDRSPIN, UDM_SETACCEL,
952 SendDlgItemMessage(hWnd, IDC_FB_ADDRSPIN, UDM_SETRANGE,
959 palette_check(hWnd);
963 if ((HWND)lParam == GetDlgItem(hWnd, IDC_FB_ADDRSPIN)) {
968 GetDlgItemText(hWnd, IDC_FB_ADDR, tmpbuf, 100);
975 SendDlgItemMessage(hWnd, IDC_FB_ADDRSPIN,
979 SetDlgItemText(hWnd, IDC_FB_ADDR, tmpbuf);
990 idx = SendDlgItemMessage(hWnd, IDC_FB_NAME,
992 i = SendDlgItemMessage(hWnd, IDC_FB_NAME,
996 UpdateFbDlg(hWnd, &fb_settings[0],
1003 UpdateFbDlg(hWnd, &fb_settings[0], UPDATE_DATA);
1005 EndDialog(hWnd, IDOK);
1009 EndDialog(hWnd, IDCANCEL);
1230 LRESULT CALLBACK WndProc(HWND hWnd, UINT message,
1234 palette_init(hWnd);
1238 palette_check(hWnd);
1247 DestroyWindow(hWnd);
1255 return (DefWindowProc(hWnd, message, wParam, lParam));
1261 BOOL CALLBACK MainDlgProc(HWND hWnd, UINT message,
1269 hWndCB = CommandBar_Create(hInst, hWnd, 1);
1277 hdc = BeginPaint(hWnd, &ps);
1278 EndPaint(hWnd, &ps);
1283 palette_check(hWnd);
1291 DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUT), hWnd, DlgProc2);
1297 KillTimer(hWnd,IDD_TIMER);
1308 KillTimer(hWnd,IDD_TIMER);
1330 SendDlgItemMessage(hWnd, IDC_FBSELECT,
1335 DialogBox(hInst, MAKEINTRESOURCE(IDD_PROP), hWnd, PropDlgProc);
1340 idx = SendDlgItemMessage(hWnd, IDC_FBSELECT,
1342 i = SendDlgItemMessage(hWnd, IDC_FBSELECT,
1361 DestroyWindow(hWnd);