コード例 #1
0
ファイル: mainbox.c プロジェクト: Codyle/pcsx2
void MainBoxRefocus()
{
	MainBoxDeviceEvent();
	// gtk_widget_set_sensitive(mainbox.device, TRUE);
	// gtk_window_set_focus(GTK_WINDOW(mainbox.window), mainbox.device);
	// ShowWindow(mainboxwindow, SW_RESTORE); // and/or, SW_SHOW? SW_SHOWNORMAL?
	ShowWindow(mainboxwindow, SW_SHOW);
	SetActiveWindow(mainboxwindow);
} // END MainBoxRefocus()
コード例 #2
0
ファイル: mainbox.c プロジェクト: 0xZERO3/PCSX2-rr-lua
BOOL CALLBACK MainBoxCallback(HWND window,
                              UINT msg,
                              WPARAM param,
                              LPARAM param2) {
  switch(msg) {
    case WM_INITDIALOG:
      mainboxwindow = window;
      MainBoxDisplay(); // In this case, final touches to this window.
      ProgressBoxDisplay(); // Create the Progress Box at this time.
      return(FALSE); // And let Windows display this window.
      break;

    case WM_CLOSE: // The "X" in the upper right corner was hit.
      MainBoxCancelEvent();
      return(TRUE);
      break;

    case WM_COMMAND:
      // Do we wish to capture 'ENTER/RETURN' and/or 'ESC' here?

      switch(LOWORD(param)) {
        case IDC_0202: // Filename Edit Box
          MainBoxFileEvent(); // Describe the File's type...
          return(FALSE); // Let Windows handle the actual 'edit' processing...
          break;

        case IDC_0203: // "Browse" Button
          MainBoxBrowseEvent();
          return(TRUE);
          break;

        case IDC_0205: // "Ok" Button
          MainBoxOKEvent();
          return(TRUE);
          break;

        case IDC_0206: // "Get from Disc" Button
          MainBoxDeviceEvent();
          return(TRUE);
          break;

        case IDC_0207: // "Convert" Button
          MainBoxConversionEvent();
          return(TRUE);
          break;

        case IDC_0208: // "Cancel" Button
          MainBoxCancelEvent();
          return(TRUE);
          break;
      } // ENDSWITCH param- Which object got the message?
  } // ENDSWITCH msg- what message has been sent to this window?

  return(FALSE); // Not a recognized message? Tell Windows to handle it.
} // END MainBoxEventLoop()
コード例 #3
0
ファイル: mainbox.c プロジェクト: mfitz21/pcsx2-rr
void MainBoxRefocus() {

  GdkEvent event;



  MainBoxDeviceEvent(NULL, event, NULL);



  gtk_widget_set_sensitive(mainbox.device, TRUE);

  gtk_window_set_focus(GTK_WINDOW(mainbox.window), mainbox.device);

  gtk_window_deiconify(GTK_WINDOW(mainbox.window));

} // END MainBoxRefocus()