Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCFileDialog allows bad filenames Pin
Ally_Sutherland15-Dec-05 7:23
Ally_Sutherland15-Dec-05 7:23 
QuestionRe: CFileDialog allows bad filenames Pin
David Crow15-Dec-05 7:31
David Crow15-Dec-05 7:31 
AnswerRe: CFileDialog allows bad filenames Pin
Ally_Sutherland15-Dec-05 7:54
Ally_Sutherland15-Dec-05 7:54 
QuestionHow to simulate clicks on toolbar buttons? Pin
Cyrus Dang15-Dec-05 7:19
Cyrus Dang15-Dec-05 7:19 
AnswerRe: How to simulate clicks on toolbar buttons? Pin
Maximilien15-Dec-05 7:49
Maximilien15-Dec-05 7:49 
GeneralRe: How to simulate clicks on toolbar buttons? Pin
#realJSOP15-Dec-05 8:03
professional#realJSOP15-Dec-05 8:03 
GeneralRe: How to simulate clicks on toolbar buttons? Pin
Maximilien15-Dec-05 9:11
Maximilien15-Dec-05 9:11 
GeneralRe: How to simulate clicks on toolbar buttons? Pin
Cyrus Dang15-Dec-05 8:38
Cyrus Dang15-Dec-05 8:38 
Hi,

I tried to send the WM_COMMAND to my toolbar, it worked. But it failed when I sent that message to the toolbar of the Open File Dialog (CFileDialog). Here is my code:

<br />
hwndToolBar = ::FindWindowEx(hwndParent, NULL, _T("ToolbarWindow32"), NULL);<br />
::SendMessage(hwndToolBar, WM_COMMAND, MAKEWPARAM((WORD)40961, CN_COMMAND), NULL); // 40961 is the ID of the "Up One Level" button.<br />


I didn't know why it failed. Please help me. What I need is programmatically clicking on the "Up One Level" button.

Thanks in advance.

-- modified at 14:39 Thursday 15th December, 2005
GeneralRe: How to simulate clicks on toolbar buttons? Pin
Nish Nishant15-Dec-05 9:02
sitebuilderNish Nishant15-Dec-05 9:02 
GeneralRe: How to simulate clicks on toolbar buttons? Pin
Cyrus Dang15-Dec-05 9:12
Cyrus Dang15-Dec-05 9:12 
GeneralRe: How to simulate clicks on toolbar buttons? Pin
Nish Nishant15-Dec-05 9:28
sitebuilderNish Nishant15-Dec-05 9:28 
QuestionWindows monitor number Pin
Manu_8115-Dec-05 6:18
Manu_8115-Dec-05 6:18 
QuestionRe: Windows monitor number Pin
David Crow15-Dec-05 6:27
David Crow15-Dec-05 6:27 
AnswerRe: Windows monitor number Pin
Manu_8115-Dec-05 7:16
Manu_8115-Dec-05 7:16 
QuestionRe: Windows monitor number Pin
David Crow15-Dec-05 7:30
David Crow15-Dec-05 7:30 
AnswerRe: Windows monitor number Pin
Nish Nishant15-Dec-05 7:25
sitebuilderNish Nishant15-Dec-05 7:25 
AnswerRe: Windows monitor number Pin
Nish Nishant15-Dec-05 7:24
sitebuilderNish Nishant15-Dec-05 7:24 
QuestionOff topic, Installation Package Pin
patrickcbrown15-Dec-05 4:51
patrickcbrown15-Dec-05 4:51 
AnswerRe: Off topic, Installation Package Pin
Blake Miller16-Dec-05 5:10
Blake Miller16-Dec-05 5:10 
QuestionMFC and .NET Pin
-Dy15-Dec-05 3:52
-Dy15-Dec-05 3:52 
GeneralRe: MFC and .NET Pin
toxcct15-Dec-05 4:05
toxcct15-Dec-05 4:05 
GeneralRe: MFC and .NET Pin
-Dy15-Dec-05 4:12
-Dy15-Dec-05 4:12 
AnswerRe: MFC and .NET Pin
Nish Nishant15-Dec-05 4:11
sitebuilderNish Nishant15-Dec-05 4:11 
GeneralRe: MFC and .NET Pin
-Dy15-Dec-05 4:14
-Dy15-Dec-05 4:14 
GeneralRe: MFC and .NET Pin
Nish Nishant15-Dec-05 4:45
sitebuilderNish Nishant15-Dec-05 4:45 

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.