Click here to Skip to main content
15,908,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing line with end point Pin
Erik Thompson26-Jan-01 10:00
sitebuilderErik Thompson26-Jan-01 10:00 
GeneralBatch file deletions... Pin
26-Jan-01 6:16
suss26-Jan-01 6:16 
GeneralRe: Batch file deletions... Pin
Michael Dunn26-Jan-01 8:36
sitebuilderMichael Dunn26-Jan-01 8:36 
GeneralRe: Batch file deletions... Pin
26-Jan-01 9:54
suss26-Jan-01 9:54 
GeneralAm making a joke(but) Pin
26-Jan-01 6:11
suss26-Jan-01 6:11 
GeneralRe: Am making a joke(but) Pin
26-Jan-01 9:43
suss26-Jan-01 9:43 
QuestionSample code using WinEvenProc? Pin
Tom K25-Jan-01 22:37
Tom K25-Jan-01 22:37 
Generalprofiling release version Pin
.::RockNix::.25-Jan-01 21:33
.::RockNix::.25-Jan-01 21:33 
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 

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.