Mercurial > msvpvf
comparison src/gui.c @ 29:61b9a9ba7fee
cast our enum properly...
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Thu, 07 Apr 2022 23:56:50 -0400 |
parents | 1b8d066e55ae |
children | fa7bd08be944 |
comparison
equal
deleted
inserted
replaced
28:1b8d066e55ae | 29:61b9a9ba7fee |
---|---|
213 case WM_COMMAND: | 213 case WM_COMMAND: |
214 if(HIWORD(wParam) == CBN_SELCHANGE) { | 214 if(HIWORD(wParam) == CBN_SELCHANGE) { |
215 if (LOWORD(wParam) == COMBOBOX) | 215 if (LOWORD(wParam) == COMBOBOX) |
216 version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); | 216 version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); |
217 if (LOWORD(wParam) == LISTBOX) | 217 if (LOWORD(wParam) == LISTBOX) |
218 type = (type)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); | 218 type = (types)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); |
219 } | 219 } |
220 switch(wParam) { | 220 switch(wParam) { |
221 case OPEN_FILE_BUTTON: | 221 case OPEN_FILE_BUTTON: |
222 file_name = open_file(hWnd); | 222 file_name = open_file(hWnd); |
223 break; | 223 break; |