Questions tagged [common-dialog]

questions related to MS Common Dialogs API

Windows Open File, Save File, Open Folder, Find and Replace, Print, Page Setup, Font, and Color dialog boxes.

https://learn.microsoft.com/en-us/windows/desktop/uxguide/win-common-dlg

48 questions
0
votes
2 answers

How to code in VBA for requesting password when clicked on a button?

I have got a command button on one of the excel sheet to hide/unhide one of the worksheet. See below code. However, now I want to add a capability for the admin to enter the password in order to unhide the sheet, else anyone can click the button…
rikin bhavsar
  • 13
  • 1
  • 6
0
votes
1 answer

Internet Explorer 9 (IE9) hangs after closing activex form e.g. common dialog (comdlg32.ocx)

my intranet app allows users to browse & print using the CommonDialog activeX control (comdlg32.ocx). This has worked fine IE6-IE8. On IE9 client machines the common dialog is displayed as usual, however when OK or Cancel is clicked and the dialog…
0
votes
0 answers

Showing Win32 common dialog at desktop center from a console program

I would like to display a common dialog at desktop center, calling GetOpenFileName() from a console program. From the Open File Name dialog, I want to get just the name of the selected file. Is there any way to do this? #include #include…
Sergio
  • 891
  • 9
  • 27
0
votes
1 answer

Why can't I detect Windows messages that are being sent to my CommonDialog? What is the right way of intercepting them?

I am trying to detect when the user clicks on a Form and a CommonDialog. Forms are fairly straightforward. I create a MessageFilter class that intercepts messages: class MessageFilter : IMessageFilter { private const int WM_LBUTTONDOWN =…
pushkin
  • 9,575
  • 15
  • 51
  • 95
0
votes
1 answer

IOleWindow not working properly for IFileDialog?

I'm working with some code that uses Microsoft.WindowsAPICodePack to provide a C# wrapper of the Vista-style common dialogs (IFileOpenDialog, IFileSaveDialog). I'm wanting to add validation of the selected item in the OnFileOk event callback, and…
Jonathan Gilbert
  • 3,526
  • 20
  • 28
0
votes
0 answers

Microsoft CommonDialog Control for higher version of MS Access

I've been searching the web for answers but got no success to find the right thing to do. So this is my last resort. We have an Access database (1997) and works perfectly in our old remote server. But when we migrated it to Windows 2012 Server and…
JJJ
  • 93
  • 2
  • 16
0
votes
3 answers

SetThemeAppProperties disables COM Common Dialogs

Calling SetThemeAppProperties with argument which has flag STAP_ALLOW_CONTROLS unset causes CoCreateInstance for Common Dialogs (or at list File Open Dialog, CLSID_FileOpenDialog) to return error 0x80040111. Sample code is following: HRESULT…
Adam Badura
  • 5,069
  • 1
  • 35
  • 70
0
votes
1 answer

Get selected value from Script Combo box of Common Dialog control in VB6

I am using Common Dialog Control of VB6 to select Font by calling ShowFont method. Here I can select desired font, font size, bold, italic, strike thru etc. I also select Arabic from script combo box. The problem is not able to get the value which I…
Sachin
  • 111
  • 1
  • 8
0
votes
1 answer

On what platforms will m_ofn members be valid?

According to this, some members (specifically the one I am interested in is the initial directory member lpstrInitialDir is not supported on Vista. It is important for me to know if it is supported on 2008 and Windows7 - the docs are silent on…
Tim
  • 20,184
  • 24
  • 117
  • 214
0
votes
1 answer

How to rename a Network volume's name in WOW64 Apps' Common File Dialog

I'm developing a network redirector like SMB. Once a volume has been connected, I create 4 registry keys to following…
Benjamin
  • 10,085
  • 19
  • 80
  • 130
0
votes
1 answer

How to display an API populated virtual folder in Windows Common File Dialogs

We have a REST API that we can use to get a list of files, upload and download files. Now we need to integrate this API in one of our application so that users can open and save files using the API. I want to make the UI consistent with opening and…
A9S6
  • 6,575
  • 10
  • 50
  • 82
0
votes
2 answers

Is There a Windows Video Codec Common Dialog?

Does Windows have a common dialog to select video codecs? If there is one, how can I create one in c#? I'm asking because I'm currently developing with a plugin that seems to have included extremely dated codecs, and am not sure if the plugin is…
futureelite7
  • 11,462
  • 10
  • 53
  • 87
0
votes
1 answer

Save as common file dialog not considering the save-as-file-type

I have a requirement in my app where I need to set the File-name and extension programmatically with the Common save-as File dialog. But seems the save-as-File-type is not considered until changing the save-as-type on the dialog by manually. It…
njohn
  • 81
  • 6
0
votes
1 answer

child of tab dialog control cover the tab itself

I create a tab control in WM_INITDIALOG this way: INITCOMMONCONTROLSEX icex = {0}; icex.dwSize = sizeof(INITCOMMONCONTROLSEX); icex.dwICC = ICC_TAB_CLASSES; InitCommonControlsEx(&icex); TCITEM tie; LPSTR text = "my tab"; tie.mask =…
user667222
  • 179
  • 3
  • 16
0
votes
2 answers

how to make FindText dialog put its messages onto main loop?

I have registered FINDMSGSTRINGW but it doesn't show on the main loop: #include #include int main() { using namespace std; UINT uFindReplaceMsg = RegisterWindowMessageW(FINDMSGSTRINGW); WCHAR szFindWhat[MAX_PATH] = {0};…
rsk82
  • 28,217
  • 50
  • 150
  • 240