Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: profiling release version Pin
Matt.W.25-Jan-01 23:25
Matt.W.25-Jan-01 23:25 
GeneralLaunch Internet Explorer Pin
Vickie25-Jan-01 18:52
Vickie25-Jan-01 18:52 
GeneralRe: Launch Internet Explorer Pin
Michael Dunn25-Jan-01 18:56
sitebuilderMichael Dunn25-Jan-01 18:56 
GeneralRe: Launch Internet Explorer Pin
Colin J Davies25-Jan-01 23:28
Colin J Davies25-Jan-01 23:28 
GeneralRe: Launch Internet Explorer Pin
26-Jan-01 5:41
suss26-Jan-01 5:41 
GeneralRe: Launch Internet Explorer Pin
Michael Dunn26-Jan-01 8:46
sitebuilderMichael Dunn26-Jan-01 8:46 
Generalinserting files in microsoft Jet DB Pin
25-Jan-01 14:54
suss25-Jan-01 14:54 
GeneralGetting the PATH of a Explorer window, having its HWND Pin
Roms25-Jan-01 12:59
Roms25-Jan-01 12:59 
It's been a while that I'm trying to get information on that, any help will be precious :

I'm trying to get information (the path for example) of the current focused Explorer Window. I found a way, but it's not clean at all :

// #1 get previous window Hwnd
HWND current = GetSafeHwnd();
prevhwnd = ::FindWindow("CabinetWClass", NULL);

// #2 find the ComboBox called "addess" in the explorer window
::EnumChildWindows(prevhwnd, EnumChildProc, 0);

// #3 now, we have g_combohwnd = CComboBox HWND
CComboBoxEx *cb = (CComboBoxEx *) FromHandle (g_combohwnd);

// #4 get the text in the combobox edit zone....
::SendMessage(cb->m_hWnd, WM_GETTEXT, (WPARAM)256, (LPARAM)buf);



This is really ugly... Any idea, please ????
Confused | :confused:

Roms
GeneralStill looking for.... Pin
25-Jan-01 10:29
suss25-Jan-01 10:29 
GeneralRe: Still looking for.... Pin
26-Jan-01 9:57
suss26-Jan-01 9:57 
GeneralRe: Still looking for.... Pin
26-Jan-01 22:54
suss26-Jan-01 22:54 
GeneralNeed GetModuleFileName for UNIX. Pin
Alvaro Mendez25-Jan-01 6:13
Alvaro Mendez25-Jan-01 6:13 
GeneralRe: Need GetModuleFileName for UNIX. Pin
Roger Scudder25-Jan-01 9:24
Roger Scudder25-Jan-01 9:24 
GeneralRe: Need GetModuleFileName for UNIX. Pin
James R. Twine30-Jan-01 9:26
James R. Twine30-Jan-01 9:26 
GeneralPrinting problem!!! Pin
25-Jan-01 5:09
suss25-Jan-01 5:09 
GeneralRe: Printing problem!!! Pin
Michael A Barnhart25-Jan-01 6:18
Michael A Barnhart25-Jan-01 6:18 
QuestionWhat is a bit mask and when it is used?? Pin
25-Jan-01 4:37
suss25-Jan-01 4:37 
QuestionWhat is a bit mask and when it is used?? Pin
25-Jan-01 4:37
suss25-Jan-01 4:37 
AnswerRe: What is a bit mask and when it is used?? Pin
David Fedolfi25-Jan-01 6:16
David Fedolfi25-Jan-01 6:16 
QuestionInterface or Hook? Pin
Tom K25-Jan-01 3:03
Tom K25-Jan-01 3:03 
AnswerRe: Interface or Hook? Pin
Julien29-Jan-01 15:42
Julien29-Jan-01 15:42 
GeneralNT Service Question (Sleep vs idle) Pin
Michael A Barnhart25-Jan-01 3:01
Michael A Barnhart25-Jan-01 3:01 
GeneralRe: NT Service Question (Sleep vs idle) Pin
Michael A Barnhart26-Jan-01 3:11
Michael A Barnhart26-Jan-01 3:11 
QuestionCan a DLL be spied on? Pin
Matt Philmon25-Jan-01 2:55
Matt Philmon25-Jan-01 2:55 
AnswerRe: Can a DLL be spied on? Pin
29-Jan-01 2:30
suss29-Jan-01 2:30 

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.