Mercurial > msvpvf
comparison src/gui.c @ 40:cd50c59286be
oops..
| author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
|---|---|
| date | Fri, 22 Apr 2022 02:12:40 -0400 |
| parents | b32218b54640 |
| children | 7cb4ca7cf257 |
comparison
equal
deleted
inserted
replaced
| 39:b32218b54640 | 40:cd50c59286be |
|---|---|
| 191 * small to figure it out. | 191 * small to figure it out. |
| 192 **/ | 192 **/ |
| 193 memset(&A,0,sizeof(A)); | 193 memset(&A,0,sizeof(A)); |
| 194 int i = 0; | 194 int i = 0; |
| 195 for (i = 0; i <= 11; i++) { | 195 for (i = 0; i <= 11; i++) { |
| 196 strncpy((TCHAR*)A, (TCHAR*)versions[i], ARRAYSIZE(A); | 196 strncpy((TCHAR*)A, (TCHAR*)versions[i], ARRAYSIZE(A)); |
| 197 SendMessage(hWndComboBox, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)A); | 197 SendMessage(hWndComboBox, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)A); |
| 198 } | 198 } |
| 199 SendMessage(hWndComboBox, CB_SETCURSEL, (WPARAM)3, (LPARAM)0); | 199 SendMessage(hWndComboBox, CB_SETCURSEL, (WPARAM)3, (LPARAM)0); |
| 200 /* Open File */ | 200 /* Open File */ |
| 201 HWND open_button = CreateWindowA("Button", "Open", WS_VISIBLE | WS_CHILD, (int)((225 - 50)/2), 5, 50, 20, hWnd, (HMENU)OPEN_FILE_BUTTON, NULL, NULL); | 201 HWND open_button = CreateWindowA("Button", "Open", WS_VISIBLE | WS_CHILD, (int)((225 - 50)/2), 5, 50, 20, hWnd, (HMENU)OPEN_FILE_BUTTON, NULL, NULL); |
