Example #1
0
VOID
LoadDialog(
    IN HMODULE hModule,
    IN PMIXER_WINDOW MixerWindow,
    IN LPCWSTR DialogResId,
    IN DWORD Index)
{
    LPVOID DlgResource;
    RECT rect;

    /* first load the dialog resource */
    DlgResource = LoadDialogResource(hModule, DialogResId, NULL);

    if (!DlgResource)
    {
        /* failed to load resource */
        return;
    }

    /* get window size */
    GetClientRect(MixerWindow->hWnd, &rect);

    /* adjust client position */
    rect.left += (Index * DIALOG_VOLUME_SIZE);


    /* now add the controls */
    LoadDialogControls(MixerWindow, &rect, DlgResource, Index);

}
Example #2
0
Bool CSearchDialog::CreateLayout()
{
	if (!GeDialog::CreateLayout() || !LoadDialogResource(IDD_SEARCH_DIALOG, nullptr, 0))
		return false;

	return true;
}
Bool SmplMatrixDialog::CreateLayout(void)
{
	LoadDialogResource(DLG_SMPL_MATRIX, nullptr, 0);
	preview.Create(this, GADGET_SMPL_MATRIX_PREVIEWGROUP);
	preview.SetSource(bm);
	preview.SetDestination(bm, apply_effect, settings, true, document_preview);

	return true;
}
Example #4
0
Bool MainDialog::CreateLayout(void)
{
	// first call the parent instance
	Bool res = GeDialog::CreateLayout();

	res = LoadDialogResource(DLG_SUBDIALOG, nullptr, 0);

	if (res)
	{
		AttachSubDialog(&subdialog1, GADGET_SUBDIALOG);
		lastdlg = &subdialog1;
	}

	return res;
}
Example #5
0
Bool ListViewDialog::CreateLayout(void)
{
	// first call the parent instance
	Bool res = GeDialog::CreateLayout();

	res = LoadDialogResource(DLG_LISTVIEW,NULL,0);

	if (res)
	{
		listview1.AttachListView(this,GADGET_LISTVIEW1);
		listview2.AttachListView(this,GADGET_LISTVIEW2);
	}

	return res;
}
Example #6
0
 Bool CreateLayout()
 {
   GroupBeginInMenuLine();
   {
     BaseContainer customdata;
     customdata.SetString(HYPERLINK_LINK_TEXT, GeLoadString(CMG_DEVLINK));
     customdata.SetString(HYPERLINK_LINK_DEST, GeLoadString(CMG_DEVLINK_LINK));
     customdata.SetBool(HYPERLINK_IS_LINK, true);
     customdata.SetBool(HYPERLINK_ALIGN_RIGHT, true);
     customdata.SetBool(HYPERLINK_NO_UNDERLINE, true);
     AddCustomGui(CMG_DEVLINK, CUSTOMGUI_HYPER_LINK_STATIC, "",
            0, 0, 0, customdata);
     GroupEnd();
   }
   return LoadDialogResource(DLG_MAIN, nullptr, BFH_SCALEFIT | BFV_SCALEFIT);
 }
Example #7
0
Bool DiffDistriDialog::CreateLayout(void)
{
	if (!GeDialog::CreateLayout())
		return false;
	if (!LoadDialogResource(IDD_DIFF_DISTRI_DLG, nullptr, 0))
		return false;

	m_pTreeView = (TreeViewCustomGui*)FindCustomGui(IDC_DIFF_DISTRI_FILES_TREE, CUSTOMGUI_TREEVIEW);
	m_pNewZipEdit = (FilenameCustomGui*)FindCustomGui(IDC_DIFF_DISTRI_NEWZIP_EDIT, CUSTOMGUI_FILENAME);
	m_pDestPathEdit = (FilenameCustomGui*)FindCustomGui(IDC_DIFF_DISTRI_DESTPATH_EDIT, CUSTOMGUI_FILENAME);
	if (!m_pTreeView || !m_pNewZipEdit || !m_pDestPathEdit)
		return false;

	BaseContainer bcLayout;
	bcLayout.SetInt32(0, LV_TREE);
	m_pTreeView->SetLayout(1, bcLayout);
	m_pTreeView->SetRoot(&g_pResEditPrefs->arOldFiles, &funcs, this);

	return true;
}
Bool ApplinkDialog::CreateLayout(void)
{
	return LoadDialogResource(DLG_APPLINK_PREFERENCES, NULL, 0);
}
Example #9
0
Bool SerialDialog::CreateLayout(void)
{
	return GeModalDialog::CreateLayout() && LoadDialogResource(DLG_REGISTER,NULL,0);
}