Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog in a DLL Pin
DarrollWalsh25-Sep-02 18:30
DarrollWalsh25-Sep-02 18:30 
GeneralRe: Dialog in a DLL Pin
RedZenBird25-Sep-02 18:59
RedZenBird25-Sep-02 18:59 
GeneralRe: Dialog in a DLL Pin
DarrollWalsh25-Sep-02 20:10
DarrollWalsh25-Sep-02 20:10 
GeneralFile properties Pin
Bugra Barin25-Sep-02 18:10
Bugra Barin25-Sep-02 18:10 
GeneralRe: File properties Pin
RedZenBird25-Sep-02 19:08
RedZenBird25-Sep-02 19:08 
GeneralRe: File properties Pin
Bugra Barin25-Sep-02 20:37
Bugra Barin25-Sep-02 20:37 
GeneralRe: File properties Pin
Steve S25-Sep-02 22:01
Steve S25-Sep-02 22:01 
GeneralRe: File properties Pin
Jawache25-Sep-02 23:08
Jawache25-Sep-02 23:08 
I don't think its as simple as you think, i've been meaning to go through this for a while and do somthing similar (get the Map NetworkDrive dialog), heres what i have found so far, you need to get a IContextMenu handle and then fill a CMININVOKECOMMANDINFO structure like bellow. You need to fill in the correct verb, in the code (snipped from seashell project - see shell extentions section in CP.) bellow it sets the verb by T2CA(MAKEINTRESOURCE(iCmd - IDM_SHELLCTXFIRST)); SHELLCTXFIRST = 2000, the iCmd is the cmd id returned by the context menu command. I'm presuming that the value of iCmd will not change per platform.

If you can find the value of iCmd that is the verb "properties" then i think you could bring up that dialog.

To Get IContextMenu you call IShellFolder::GetUIObjectOf.. see msdn.

00336 CMINVOKECOMMANDINFO cmi;
00337 cmi.cbSize = sizeof(cmi);
00338 cmi.fMask = 0;
00339 cmi.hwnd = m_hWnd;
00340 cmi.lpVerb = T2CA(MAKEINTRESOURCE(iCmd - IDM_SHELLCTXFIRST));
00341 cmi.lpParameters = NULL;
00342 cmi.lpDirectory = NULL;
00343 cmi.nShow = SW_SHOWNORMAL;
00344 cmi.dwHotKey = 0;
00345 cmi.hIcon = NULL;
00346 m_lpcm->InvokeCommand(&cmi);


Asim Hussain
e: asim@jawache.net
w: www.jawache.net
QuestionWhere Can I get C/C++ API docs? Pin
shi25-Sep-02 17:49
shi25-Sep-02 17:49 
AnswerRe: Where Can I get C/C++ API docs? Pin
Christian Graus25-Sep-02 17:59
protectorChristian Graus25-Sep-02 17:59 
GeneralRe: Where Can I get C/C++ API docs? Pin
shi25-Sep-02 18:13
shi25-Sep-02 18:13 
GeneralRe: Where Can I get C/C++ API docs? Pin
Michael P Butler25-Sep-02 22:28
Michael P Butler25-Sep-02 22:28 
GeneralRe: Where Can I get C/C++ API docs? Pin
Christian Graus26-Sep-02 0:36
protectorChristian Graus26-Sep-02 0:36 
Generalprograming problems Pin
Mr. Gates25-Sep-02 17:14
Mr. Gates25-Sep-02 17:14 
GeneralRe: programing problems Pin
Christian Graus25-Sep-02 17:25
protectorChristian Graus25-Sep-02 17:25 
GeneralRe: programing problems Pin
RedZenBird25-Sep-02 19:11
RedZenBird25-Sep-02 19:11 
Generalenum problem Pin
stevenson25-Sep-02 16:30
stevenson25-Sep-02 16:30 
GeneralRe: enum problem Pin
Le centriste25-Sep-02 17:02
Le centriste25-Sep-02 17:02 
GeneralRe: enum problem Pin
stevenson25-Sep-02 17:31
stevenson25-Sep-02 17:31 
GeneralRe: enum problem Pin
Todd Smith25-Sep-02 18:31
Todd Smith25-Sep-02 18:31 
GeneralRe: enum problem Pin
stevenson25-Sep-02 20:04
stevenson25-Sep-02 20:04 
GeneralRe: enum problem Pin
Todd Smith26-Sep-02 7:26
Todd Smith26-Sep-02 7:26 
GeneralRe: enum problem Pin
Michael Dunn25-Sep-02 19:16
sitebuilderMichael Dunn25-Sep-02 19:16 
GeneralRe: enum problem Pin
Mike Nordell25-Sep-02 20:26
Mike Nordell25-Sep-02 20:26 
GeneralRe: enum problem Pin
stevenson25-Sep-02 21:32
stevenson25-Sep-02 21:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.