当前位置: 首页>>代码示例>>C++>>正文


C++ CreateDialog函数代码示例

本文整理汇总了C++中CreateDialog函数的典型用法代码示例。如果您正苦于以下问题:C++ CreateDialog函数的具体用法?C++ CreateDialog怎么用?C++ CreateDialog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了CreateDialog函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PhSipCpuDialogProc

INT_PTR CALLBACK PhSipCpuDialogProc(
    _In_ HWND hwndDlg,
    _In_ UINT uMsg,
    _In_ WPARAM wParam,
    _In_ LPARAM lParam
    )
{
    switch (uMsg)
    {
    case WM_INITDIALOG:
        {
            PPH_LAYOUT_ITEM graphItem;
            PPH_LAYOUT_ITEM panelItem;
            WCHAR brandString[49];

            PhSipInitializeCpuDialog();

            CpuDialog = hwndDlg;
            PhInitializeLayoutManager(&CpuLayoutManager, hwndDlg);
            PhAddLayoutItem(&CpuLayoutManager, GetDlgItem(hwndDlg, IDC_CPUNAME), NULL, PH_ANCHOR_LEFT | PH_ANCHOR_TOP | PH_ANCHOR_RIGHT | PH_LAYOUT_FORCE_INVALIDATE);
            graphItem = PhAddLayoutItem(&CpuLayoutManager, GetDlgItem(hwndDlg, IDC_GRAPH_LAYOUT), NULL, PH_ANCHOR_ALL);
            CpuGraphMargin = graphItem->Margin;
            panelItem = PhAddLayoutItem(&CpuLayoutManager, GetDlgItem(hwndDlg, IDC_LAYOUT), NULL, PH_ANCHOR_LEFT | PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM);

            SendMessage(GetDlgItem(hwndDlg, IDC_TITLE), WM_SETFONT, (WPARAM)CpuSection->Parameters->LargeFont, FALSE);
            SendMessage(GetDlgItem(hwndDlg, IDC_CPUNAME), WM_SETFONT, (WPARAM)CpuSection->Parameters->MediumFont, FALSE);

            PhSipGetCpuBrandString(brandString);
            SetDlgItemText(hwndDlg, IDC_CPUNAME, brandString);

            CpuPanel = CreateDialog(PhInstanceHandle, MAKEINTRESOURCE(IDD_SYSINFO_CPUPANEL), hwndDlg, PhSipCpuPanelDialogProc);
            ShowWindow(CpuPanel, SW_SHOW);
            PhAddLayoutItemEx(&CpuLayoutManager, CpuPanel, NULL, PH_ANCHOR_LEFT | PH_ANCHOR_RIGHT | PH_ANCHOR_BOTTOM, panelItem->Margin);

            PhSipCreateCpuGraphs();

            if (NumberOfProcessors != 1)
            {
                OneGraphPerCpu = (BOOLEAN)PhGetIntegerSetting(L"SysInfoWindowOneGraphPerCpu");
                Button_SetCheck(GetDlgItem(CpuPanel, IDC_ONEGRAPHPERCPU), OneGraphPerCpu ? BST_CHECKED : BST_UNCHECKED);
                PhSipSetOneGraphPerCpu();
            }
            else
            {
                OneGraphPerCpu = FALSE;
                EnableWindow(GetDlgItem(CpuPanel, IDC_ONEGRAPHPERCPU), FALSE);
                PhSipSetOneGraphPerCpu();
            }

            PhSipUpdateCpuGraphs();
            PhSipUpdateCpuPanel();
        }
        break;
    case WM_DESTROY:
        {
            PhDeleteLayoutManager(&CpuLayoutManager);
        }
        break;
    case WM_SIZE:
        {
            PhLayoutManagerLayout(&CpuLayoutManager);
            PhSipLayoutCpuGraphs();
        }
        break;
    case WM_NOTIFY:
        {
            NMHDR *header = (NMHDR *)lParam;
            ULONG i;

            if (header->hwndFrom == CpuGraphHandle)
            {
                PhSipNotifyCpuGraph(-1, header);
            }
            else
            {
                for (i = 0; i < NumberOfProcessors; i++)
                {
                    if (header->hwndFrom == CpusGraphHandle[i])
                    {
                        PhSipNotifyCpuGraph(i, header);
                        break;
                    }
                }
            }
        }
        break;
    }

    return FALSE;
}
开发者ID:Azarien,项目名称:processhacker2,代码行数:90,代码来源:syssccpu.c

示例2: GbaSlotBox_Proc

//==============================================================================
BOOL CALLBACK GbaSlotBox_Proc(HWND dialog, UINT msg,WPARAM wparam,LPARAM lparam)
{
	switch(msg)
	{
		case WM_INITDIALOG: 
		{
			OKbutton = GetDlgItem(dialog, IDOK);
			for(int i = 0; i < NDS_ADDON_COUNT; i++)
				ComboBox_AddString(GetDlgItem(dialog, IDC_ADDONS_LIST), addonList[i].name);
			ComboBox_SetCurSel(GetDlgItem(dialog, IDC_ADDONS_LIST), temp_type);
			u8 tmp_info[512];
			addonList[temp_type].info((char *)tmp_info);
			SetWindowText(GetDlgItem(dialog, IDC_ADDONS_INFO), (char *)tmp_info);

			wndConfig=CreateDialog(hAppInst, MAKEINTRESOURCE(GBAslot_IDDs[temp_type]), 
										dialog, (DLGPROC)GBAslot_Procs[temp_type]);
			if (temp_type == 0)
				EnableWindow(OKbutton, TRUE);
			return TRUE;
		}
	
		case WM_COMMAND:
		{
			switch (LOWORD(wparam))
			{
				case IDOK:
					{
						int Msg = IDYES;
						if (romloaded)
						{
							int Msg = MessageBox(dialog, 
									"After change GBA slot pak game will reset!\nAre you sure to continue?", "DeSmuME",
									MB_YESNO|MB_ICONQUESTION|MB_DEFBUTTON2);
						}
						if (Msg == IDYES)
						{
							if (wndConfig) DestroyWindow(wndConfig);
							EndDialog(dialog, TRUE);
						}
					}
				return TRUE;
				case IDCANCEL:
					if (wndConfig) DestroyWindow(wndConfig);
					EndDialog(dialog, FALSE);
				return TRUE;

				case IDC_ADDONS_LIST:
					if (HIWORD(wparam) == CBN_SELENDOK)
					{
						temp_type = ComboBox_GetCurSel(GetDlgItem(dialog, IDC_ADDONS_LIST));
						if (temp_type != last_type)
						{
							if (wndConfig) DestroyWindow(wndConfig);
							wndConfig=CreateDialog(hAppInst, 
								MAKEINTRESOURCE(GBAslot_IDDs[temp_type]), dialog, 
								(DLGPROC)GBAslot_Procs[temp_type]);
							u8 tmp_info[512];
							addonList[temp_type].info((char *)tmp_info);
							SetWindowText(GetDlgItem(dialog, IDC_ADDONS_INFO), (char *)tmp_info);
							last_type = temp_type;
						}
					}
				return TRUE;
			}
			break;
		}
	}
	return FALSE;
}
开发者ID:snowasnow,项目名称:DeSmuME,代码行数:70,代码来源:gbaslot_config.cpp

示例3: display_toolbox

void EVALOBJ::make_dialog(void)
{
	display_toolbox(hDlg=CreateDialog(hInst, (LPCTSTR)IDD_EVALBOX, ghWndStatusbox, (DLGPROC)EvalDlgHandler));
}
开发者ID:RD3BAX,项目名称:BrainBay,代码行数:4,代码来源:ob_evaluator.cpp

示例4: InitializeDialog

static int InitializeDialog (HWND window)
{
    TCITEM                 gui_tab_item;
    struct reference_data* data;
    HWND                   tab_window;
    HWND                   ref_syntax_window;
    HWND                   ref_plugins_window;
    HWND                   ref_templates_window;
    HICON                  icon;

    data = malloc(sizeof(struct reference_data));
    if(data == NULL)
        goto allocate_reference_data_failed;

    icon = LoadIcon(tside_application_instance, MAKEINTRESOURCE(TSIDE_I_GUI_REFERENCE));
    if(icon == NULL)
        goto load_reference_icon_failed;

    SendMessage(window, WM_SETICON, ICON_BIG, (LPARAM)icon);

    tab_window = GetDlgItem(window, TSIDE_C_REFERENCE_TABS);

    ref_syntax_window = CreateDialog(
                                     tside_application_instance,
                                     MAKEINTRESOURCE(TSIDE_D_REF_SYNTAX),
                                     window,
                                     &TSIDE_RefSyntaxMessageProc
                                    );
    if(ref_syntax_window == NULL)
        goto create_ref_syntax_window_failed;

    ref_plugins_window = CreateDialog(
                                      tside_application_instance,
                                      MAKEINTRESOURCE(TSIDE_D_REF_PLUGINS),
                                      window,
                                      &TSIDE_RefPluginsMessageProc
                                     );
    if(ref_plugins_window == NULL)
        goto create_ref_plugins_window_failed;

    ref_templates_window = CreateDialog(
                                        tside_application_instance,
                                        MAKEINTRESOURCE(TSIDE_D_REF_TEMPLATES),
                                        window,
                                        &TSIDE_RefTemplatesMessageProc
                                       );
    if(ref_templates_window == NULL)
        goto create_ref_templates_window_failed;

    gui_tab_item.mask    = TCIF_TEXT;
    gui_tab_item.pszText = TSIDE_GetResourceText(TSIDE_S_REFERENCE_TAB_SYNTAX);

    SendMessage(tab_window, TCM_INSERTITEM, TSIDE_REFERENCE_SYNTAX, (LPARAM)&gui_tab_item);

    gui_tab_item.mask    = TCIF_TEXT;
    gui_tab_item.pszText = TSIDE_GetResourceText(TSIDE_S_REFERENCE_TAB_PLUGINS);

    SendMessage(tab_window, TCM_INSERTITEM, TSIDE_REFERENCE_PLUGINS, (LPARAM)&gui_tab_item);

    gui_tab_item.mask    = TCIF_TEXT;
    gui_tab_item.pszText = TSIDE_GetResourceText(TSIDE_S_REFERENCE_TAB_TEMPLATES);

    SendMessage(tab_window, TCM_INSERTITEM, TSIDE_REFERENCE_TEMPLATES, (LPARAM)&gui_tab_item);

    data->reference_window     = window;
    data->tab_window           = tab_window;
    data->ref_syntax_window    = ref_syntax_window;
    data->ref_plugins_window   = ref_plugins_window;
    data->ref_templates_window = ref_templates_window;

    SetWindowLongPtr(window, GWLP_USERDATA, (LONG_PTR)data);

    RepositionControls(data);
    SetSelectedTab(TSIDE_REFERENCE_PLUGINS, data);

    return TSIDE_ERROR_NONE;

create_ref_templates_window_failed:
    DestroyWindow(ref_plugins_window);
create_ref_plugins_window_failed:
    DestroyWindow(ref_syntax_window);
create_ref_syntax_window_failed:
    DestroyIcon(icon);
load_reference_icon_failed:
    free(data);

allocate_reference_data_failed:
    return TSIDE_ERROR_REFERENCE_ERROR;
}
开发者ID:agottem,项目名称:trigger_script,代码行数:89,代码来源:reference.c

示例5: DialogProc

static INT_PTR CALLBACK DialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	static activePage = 0;

	switch (msg)
	{
	/* init */
	case WM_INITDIALOG:
		{
			LOCALDATA *data = LocalAlloc(LPTR, sizeof(LOCALDATA));
			HINSTANCE inst = (HINSTANCE)lParam;
			TCITEM item;

			/* init */
			SetWindowLong(hwnd, GWL_USERDATA, (LONG)data);
			data->htab = GetDlgItem(hwnd, IDC_TABS);
			data->hdlg = NULL;
			/* add pages */
			item.mask = TCIF_TEXT;
			data->all[0] = CreateDialog(inst, MAKEINTRESOURCE(IDD_CONFIG_GENERAL), hwnd, GeneralProc);
			item.pszText = "General";
			TabCtrl_InsertItem(data->htab, 0, &item);

			data->all[1] = CreateDialog(inst, MAKEINTRESOURCE(IDD_CONFIG_OUTPUT), hwnd, OutputProc);
			item.pszText = "Output";
			TabCtrl_InsertItem(data->htab, 1, &item);
			/* get rect (after adding pages) */
			GetWindowRect(data->htab, &data->r);
			ScreenToClientRect(hwnd, &data->r);
			TabCtrl_AdjustRect(data->htab, 0, &data->r);
			/* simulate item change */
			TabCtrl_SetCurSel(data->htab, activePage);
			OnSelChange(hwnd);
		}
		return TRUE;
	/* destory */
	case WM_DESTROY:
		{
			LOCALDATA *data = (LOCALDATA*)GetWindowLong(hwnd, GWL_USERDATA);
			int i;

			activePage = TabCtrl_GetCurSel(data->htab);

			for (i=0; i<NUM_PAGES; i++)
				DestroyWindow(data->all[i]);

			LocalFree(data);
		}
		break;
	/* commands */
	case WM_COMMAND:
		switch (LOWORD(wParam))
		{
		/* ok/cancel */
		case IDOK:
			BroadcastCommand(hwnd, IDOK);
			/* fall through */
		case IDCANCEL:
			EndDialog(hwnd, LOWORD(wParam));
			return TRUE;
		case IDC_RESET:
			SendCommand(hwnd, IDC_RESET);
			break;
		}
		break;
	/* notification */
	case WM_NOTIFY:
		if (LOWORD(wParam) == IDC_TABS)
		{
			NMHDR *hdr = (NMHDR*)lParam;

			switch (hdr->code)
			{
			case TCN_SELCHANGE:
				OnSelChange(hwnd);
				break;
			}
		}
		break;
	}

	return 0;
}
开发者ID:Erikhht,项目名称:TCPMP,代码行数:83,代码来源:config.c

示例6: ExportFeeds

INT_PTR ExportFeeds(WPARAM wParam, LPARAM lParam)
{
	CreateDialog(hInst, MAKEINTRESOURCE(IDD_FEEDEXPORT), NULL, DlgProcExportOpts);
	return 0;
}
开发者ID:0xmono,项目名称:miranda-ng,代码行数:5,代码来源:Services.cpp

示例7: createGUI

// createGUI()
//
void createGUI(HWND hWnd)
{
	if (!guiWnd)
		guiWnd = CreateDialog(hInst, (LPCTSTR)IDD_MAINWINDOW, hWnd, (DLGPROC)GUIProc);
	ShowWindow(guiWnd,SW_SHOWNORMAL);
}
开发者ID:rzr,项目名称:peercast,代码行数:8,代码来源:Simple.cpp

示例8: OnInitAdvancedDialog

//.........................................................
BOOL OnInitAdvancedDialog(void)
{
	DWORD				dwResult,
						dWord;
	HWND                hChild;
	int					index = -1;
	TCHAR				buffer[64];
	RECT                r;
	POINT               point;

	// NOTE==>	IF ANYTHING ON THIS PAGE IS MOVED TAKE INTO CONSIDERATION
	//			THAT THIS SETTING IS USED TO TELL WHAT HAS NOT CHANGED ON
	//			RETURN FROM THE PROPERTY PAGE CALL
//#ifdef WIN32
	m_bAdvancedPageHit = TRUE;
//#endif

	// Get the coordinates of area for the settings dialogs
	hSettingsListbox = GetDlgItem(hAdvanced, IDC_SETTINGS_LIST);
	GetWindowRect(hSettingsListbox, &r);
	point.x = r.right + 10;
	point.y = r.top - 6;
	ScreenToClient(hAdvanced, &point);

	//  Error Log
	dWord = sizeof(errorLog);
	dwResult = PALGetObject(hPeripheral, OT_PERIPHERAL_ERROR_LOG, 0, &errorLog, &dWord);
	if (dwResult IS RC_SUCCESS)
	{
		LoadString(hInstance, IDS_ERROR_LOG, buffer, SIZEOF_IN_CHAR(buffer));
		index = ListBox_AddString(hSettingsListbox, buffer);
		ListBox_SetItemData(hSettingsListbox, index, (LPARAM)IDI_ERROR_LOG);
		hErrLogDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_ADV_ERROR_LOG), hAdvanced, AdvErrorLogSheetProc);
        TRACE0(TEXT("HPPRUI: hErrLogDlg Created\r\n"));
		SetWindowPos(hErrLogDlg, NULL, point.x, point.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
		hChild = GetWindow(hErrLogDlg, GW_CHILD);
		while (hChild)
		{
			SetWindowFont(hChild, hFont, TRUE);
			hChild = GetWindow(hChild, GW_HWNDNEXT);
		}
	}

	if ( ( pjlFeatures.jamRecovery & SETTING_SUPPORTED ) OR
         ( pjlFeatures.autoCont & SETTING_SUPPORTED ) OR
         ( pjlFeatures.clearableWarnings & SETTING_SUPPORTED ) )
	{
		LoadString(hInstance, IDS_ERROR_HANDLING, buffer, SIZEOF_IN_CHAR(buffer));
		index = ListBox_AddString(hSettingsListbox, buffer);
		ListBox_SetItemData(hSettingsListbox, index, (LPARAM)IDI_ERROR_HANDLING);
		hErrorsDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_ADV_ERROR_HANDLING), hAdvanced, AdvErrorsSheetProc);
        TRACE0(TEXT("HPPRUI: hErrorsDlg Created\r\n"));
		SetWindowPos(hErrorsDlg, NULL, point.x, point.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
		hChild = GetWindow(hErrorsDlg, GW_CHILD);
		while (hChild)
		{
			SetWindowFont(hChild, hFont, TRUE);
			hChild = GetWindow(hChild, GW_HWNDNEXT);
		}
	}

	if ( ( pjlFeatures.resourceSave & SETTING_SUPPORTED ) OR
         ( pjlFeatures.IObuffer & SETTING_SUPPORTED ) OR
         ( pjlFeatures.pageProtect & SETTING_SUPPORTED ) OR
		 ( pjlFeatures.powerSave & SETTING_SUPPORTED ) )
	{
		LoadString(hInstance, IDS_MEMORY, buffer, SIZEOF_IN_CHAR(buffer));
		index = ListBox_AddString(hSettingsListbox, buffer);
		ListBox_SetItemData(hSettingsListbox, index, (LPARAM)IDI_MEMORY);
		hMemoryDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_ADV_MEMORY), hAdvanced, AdvMemorySheetProc);
        TRACE0(TEXT("HPPRUI: hMemoryDlg Created\r\n"));
		SetWindowPos(hMemoryDlg, NULL, point.x, point.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
		hChild = GetWindow(hMemoryDlg, GW_CHILD);
		while (hChild)
		{
			SetWindowFont(hChild, hFont, TRUE);
			hChild = GetWindow(hChild, GW_HWNDNEXT);
		}
	}

	if ( ( pjlFeatures.cpLock & SETTING_SUPPORTED ) OR
         ( pjlFeatures.passWord & SETTING_SUPPORTED ) )
	{
		LoadString(hInstance, IDS_SECURITY, buffer, SIZEOF_IN_CHAR(buffer));
		index = ListBox_AddString(hSettingsListbox, buffer);
		ListBox_SetItemData(hSettingsListbox, index, (LPARAM)IDI_SECURITY);
		hSecurityDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_ADV_SECURITY), hAdvanced, AdvSecuritySheetProc);
        TRACE0(TEXT("HPPRUI: hSecurityDlg Created\r\n"));
		SetWindowPos(hSecurityDlg, NULL, point.x, point.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
		hChild = GetWindow(hSecurityDlg, GW_CHILD);
		while (hChild)
		{
			SetWindowFont(hChild, hFont, TRUE);
			hChild = GetWindow(hChild, GW_HWNDNEXT);
		}
	}

	if( ( pjlFeatures.personality & SETTING_SUPPORTED ) OR
        ( pjlFeatures.timeout & SETTING_SUPPORTED ) OR
//.........这里部分代码省略.........
开发者ID:mingpen,项目名称:OpenNT,代码行数:101,代码来源:advanced.c

示例9: CreateDialog

void ProgressBarDialog::show()
{
  m_hDialog = CreateDialog ((HINSTANCE)GetCurrentModuleHandle(), MAKEINTRESOURCE (IDD_DIALOG1), 0, ProgressBarDialog::DialogProc);
}
开发者ID:greeduomacro,项目名称:UltimaLive,代码行数:4,代码来源:ProgressBarDialog.cpp

示例10: CreateDialog

HWND C_THISCLASS::conf(HINSTANCE hInstance, HWND hwndParent) // return NULL if no config dialog possible
{
	g_ConfigThis = this;
	return CreateDialog(hInstance,MAKEINTRESOURCE(IDD_CFG_BPM),hwndParent,g_DlgProc);
}
开发者ID:azeem,项目名称:chavs,代码行数:5,代码来源:r_bpm.cpp

示例11: WndProc

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
  int wmId, wmEvent;
  PAINTSTRUCT ps;
  HDC hdc;
  switch (message)
  {
  case WM_CREATE:
    {
      robinsonp = (char *)robinson;
      timegoesbyp = (char *)timegoesby;
    }
    break;
  case WM_COMMAND:
    wmId    = LOWORD(wParam);
    wmEvent = HIWORD(wParam);
    switch (wmId)
    {
    case IDM_TORISETTINGS: case IDM_YOMISETTINGS:
      {
        if(wmId == IDM_TORISETTINGS){
          ChangeToriYomi(TORI);
        }else{
          ChangeToriYomi(YOMI);
        }
        DialogBox(hInst,MAKEINTRESOURCE(IDD_SETTINGS),hWnd,(DLGPROC)SettingsProc);

        HDC hdc = GetDC(hWndMain);
        LoadImageToDC(hdc,currentdesign);
        ReleaseDC(hWndMain,hdc);
      }
      break;
    case IDM_SAVEASIMAGE: case IDM_YOMIASIMAGE:
      {
        if(wmId == IDM_SAVEASIMAGE){
          ChangeToriYomi(TORI);
        }else{
          ChangeToriYomi(YOMI);
        }
        
        DialogBox(hInst,MAKEINTRESOURCE(IDD_SAVEIMAGE),hWnd,(DLGPROC)SaveAsImageProc);
      }
      break;
    case IDM_FUDADESIGN: case IDM_YOMIDESIGN:
      {
        if(wmId == IDM_FUDADESIGN){
          ChangeToriYomi(TORI);
          HWND hDlg = CreateDialog(hInst,MAKEINTRESOURCE(IDD_FUDADESIGN),hWnd,(DLGPROC)ToriDesignProc);
          ShowWindow(hDlg,SW_SHOW);
        }else{
          ChangeToriYomi(YOMI);
          HWND hDlg = CreateDialog(hInst,MAKEINTRESOURCE(IDD_YOMIDESIGN),hWnd,(DLGPROC)YomiDesignProc);
          ShowWindow(hDlg,SW_SHOW);
        }
      }
      break;
    case IDM_FUDAOTOSI:
      {
        ChangeToriYomi(TORI);
        CreateFudaOtositorifuda();
        if(torifuda_of_fudaotosi.size() == 0){
          if(IDYES!=MessageBox(hWnd,"貴方はすでに全ての札を覚えています。\r\nまた最初からやり直しますか?\r\n","確認",MB_YESNO)){
            return 0;
          };
          ClearNigateFuda();
          CreateFudaOtositorifuda();
        }
        HWND hDlg = CreateDialog(hInst,MAKEINTRESOURCE(IDD_FUDAOTOSI),hWnd,(DLGPROC)FudaOtosiProc);
        ShowWindow(hDlg,SW_SHOW);

      }
      break;
    case IDM_VERSION:
      DialogBox(hInst,MAKEINTRESOURCE(IDD_VERSION),hWnd,(DLGPROC)VersionProc);
      break;
    case IDM_EXIT:
      DestroyWindow(hWnd);
      break;
    default:
      return DefWindowProc(hWnd, message, wParam, lParam);
    }
    break;
    case WM_PAINT:{
      hdc = BeginPaint(hWnd, &ps);

      if(front_structure.hdc != NULL){
        int width, height;
        width = currentdesign.width;
        height = currentdesign.height;

        HBITMAP hold1 = (HBITMAP)SelectObject(front_structure.hdc,front_structure.hbmp);
        HBITMAP hCurrentBMP = CreateCompatibleBitmap(hdc,width,height);
        HBITMAP hold = (HBITMAP)SelectObject(hdc,hCurrentBMP);
        BitBlt(hdc,0,0,width,height,front_structure.hdc,0,0,SRCCOPY);
        SelectObject(hdc,hold);
        SelectObject(front_structure.hdc,hold1);
        DeleteObject(hCurrentBMP);
      }

     EndPaint(hWnd, &ps);
//.........这里部分代码省略.........
开发者ID:pjmtdw,项目名称:kazesomiso,代码行数:101,代码来源:kazesomiso.cpp

示例12: display_toolbox

void CONSTANTOBJ::make_dialog(void)
{
	display_toolbox(hDlg=CreateDialog(hInst, (LPCTSTR)IDD_CONSTANTBOX, ghWndStatusbox, (DLGPROC)ConstantDlgHandler));
}
开发者ID:Smeetal,项目名称:BrainBay,代码行数:4,代码来源:ob_constant.cpp

示例13: MakeLogWindow

void MakeLogWindow(void)
{
 if(!logwin)
  CreateDialog(fceu_hInstance,"MESSAGELOG",0,LogCon);
}
开发者ID:BruceJawn,项目名称:FlashNES,代码行数:5,代码来源:log.c

示例14: MainWndHandler


//.........这里部分代码省略.........
					break;
				case IDM_EXIT:	
					DestroyWindow( hWnd );
				    break;
                
				case IDM_PLAY:	
						SendMessage(ghWndStatusbox,WM_COMMAND, IDC_RUNSESSION,0);
				    break;
				case IDM_STOP:			
						SendMessage(ghWndStatusbox,WM_COMMAND, IDC_STOPSESSION,0);
				    break;

				case IDM_NEUROSERVER:
						strcpy(sztemp,GLOBAL.resourcepath); 
						strcat(sztemp,"NETWORK\\nsd.exe");
						ShellExecute(hWnd, "open", sztemp, NULL, NULL, SW_SHOWNORMAL);
						break;
				case IDM_READEDF:
						{
							char edffilename[MAX_PATH];
							close_toolbox();
							strcpy(edffilename,GLOBAL.resourcepath); 
							strcat(edffilename,"ARCHIVES\\*.edf");
							if (open_file_dlg(hWnd,edffilename, FT_EDF, OPEN_LOAD))
							{
								strcpy(sztemp,GLOBAL.resourcepath); 
								strcat(sztemp,"NETWORK\\readedf.exe");
								ShellExecute(hWnd, NULL, sztemp, edffilename, NULL, SW_SHOWNORMAL);
							}
						}
						break;
				case IDM_EDITCOLORS:
					close_toolbox();
					display_toolbox(CreateDialog(hInst, (LPCTSTR)IDD_EDITCOLORBOX, ghWndStatusbox, (DLGPROC)COLORDlgHandler));
					break;
				case IDM_EDITSCALES:
					close_toolbox();
					display_toolbox(CreateDialog(hInst, (LPCTSTR)IDD_EDITSCALEBOX, ghWndStatusbox, (DLGPROC)SCALEDlgHandler));
					break;
				case IDM_SETTINGS:
                     if (ghWndSettings==NULL) ghWndSettings=CreateDialog(hInst, (LPCTSTR)IDD_SETTINGSBOX, ghWndStatusbox, (DLGPROC)SETTINGSDlgHandler);
					 else SetForegroundWindow(ghWndSettings);
					break;
				case IDM_DEVICESETTINGS:
					if (deviceobject) 
					{
						close_toolbox();
						actobject=deviceobject;
	//					GLOBAL.showtoolbox=find_object(devicebox);
						actobject->make_dialog(); 
						if (actobject->displayWnd) 
							SetWindowPos(actobject->displayWnd,HWND_TOP,0,0,0,0,SWP_DRAWFRAME|SWP_NOMOVE|SWP_NOSIZE);
					} else report ("No Amplifier Device present in the design");
					break;

				case IDM_INSERTMIDI: create_object(OB_MIDI); 
					break;
				case IDM_INSERTSPECTRUM: create_object(OB_FFT);
					break;	
				case IDM_INSERTTHRESHOLD: create_object(OB_THRESHOLD); 
					break;
				case IDM_INSERTFILTER:	create_object(OB_FILTER);						
					break;	
				case IDM_INSERTMAGNITUDE:create_object(OB_MAGNITUDE);						
					break;	
				case IDM_INSERTPARTICLE:create_object(OB_PARTICLE);						
开发者ID:chipaudette,项目名称:BrainBay,代码行数:67,代码来源:brainBay.cpp

示例15: AddFeed

INT_PTR AddFeed(WPARAM wParam, LPARAM lParam)
{
	hAddFeedDlg = CreateDialog(hInst, MAKEINTRESOURCE(IDD_ADDFEED), NULL, DlgProcAddFeedOpts);
	ShowWindow(hAddFeedDlg, SW_SHOW);
	return 0;
}
开发者ID:0xmono,项目名称:miranda-ng,代码行数:6,代码来源:Services.cpp


注:本文中的CreateDialog函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。