/** * Up */ void on_button_Country_up_clicked(GtkButton *button, gpointer user_data) { GENS_UNUSED_PARAMETER(button); GENS_UNUSED_PARAMETER(user_data); Country_MoveUp(); }
LRESULT CALLBACK Country_Code_Window_WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch(message) { case WM_CREATE: Country_Code_Window_CreateChildWindows(hWnd); break; case WM_CLOSE: DestroyWindow(country_code_window); return 0; case WM_MENUSELECT: case WM_ENTERSIZEMOVE: case WM_NCLBUTTONDOWN: case WM_NCRBUTTONDOWN: // Prevent audio stuttering when one of the following events occurs: // - Menu is opened. // - Window is resized. // - Left/Right mouse button down on title bar. Win32_ClearSoundBuffer(); break; case WM_COMMAND: // Button press, or Enter pressed in textbox switch (LOWORD(wParam)) { case IDOK: // Standard dialog button ID case IDC_BTN_OK: case IDC_BTN_SAVE: Country_Save(); DestroyWindow(hWnd); break; case IDC_BTN_APPLY: Country_Save(); break; case IDCANCEL: // Standard dialog button ID case IDC_BTN_CANCEL: DestroyWindow(hWnd); break; case IDC_COUNTRY_CODE_UP: Country_MoveUp(); break; case IDC_COUNTRY_CODE_DOWN: Country_MoveDown(); break; } break; case WM_DESTROY: if (hWnd != country_code_window) break; country_code_window = NULL; if (cc_imglArrowUp) { // Arrow Up image list was created. Delete it. ImageList_Destroy(cc_imglArrowUp); cc_imglArrowUp = NULL; } if (cc_imglArrowDown) { // Arrow Down image list was created. Delete it. ImageList_Destroy(cc_imglArrowDown); cc_imglArrowDown = NULL; } break; } return DefWindowProc(hWnd, message, wParam, lParam); }