Click here to Skip to main content
15,920,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Needs help!!! can't see information regarding built-in classes (MFC) Pin
samira forooghi7-Apr-05 9:20
samira forooghi7-Apr-05 9:20 
GeneralRe: Needs help!!! can't see information regarding built-in classes (MFC) Pin
samira forooghi7-Apr-05 9:21
samira forooghi7-Apr-05 9:21 
GeneralRe: Needs help!!! can't see information regarding built-in classes (MFC) Pin
Yaron Abershitz7-Apr-05 21:31
Yaron Abershitz7-Apr-05 21:31 
Questionhow does an app know user selection in Explore? Pin
includeh107-Apr-05 6:39
includeh107-Apr-05 6:39 
AnswerRe: how does an app know user selection in Explore? Pin
David Crow7-Apr-05 7:13
David Crow7-Apr-05 7:13 
GeneralRe: how does an app know user selection in Explore? Pin
includeh107-Apr-05 7:26
includeh107-Apr-05 7:26 
GeneralRe: how does an app know user selection in Explore? Pin
includeh107-Apr-05 7:29
includeh107-Apr-05 7:29 
GeneralRe: how does an app know user selection in Explore? Pin
David Crow7-Apr-05 9:18
David Crow7-Apr-05 9:18 
If you want to query Windows Explorer yourself rather than have it notify you, you could use something like:

HWND hWnd = FindWindow("ExploreWClass", NULL);
if (NULL != hWnd)
    hWnd = FindWindowEx(hWnd, NULL, "SHELLDLL_DefView", NULL);
 
if (NULL != hWnd)
    hWnd = FindWindowEx(hWnd, NULL, "SysListView32", NULL);
 
if (NULL != hWnd)
{
    CListView *p = (CListView *) CListView::FromHandle(hWnd);
    if (NULL != p)
    {
        CListCtrl &c = p->GetListCtrl();
        if ((GetWindowLong(c.GetSafeHwnd(), GWL_STYLE) & LVS_REPORT) == LVS_REPORT)
        {
            for (int x = 0, nItem = -1; x < c.GetSelectedCount(); x++)
            {
                nItem = c.GetNextItem(nItem, LVNI_SELECTED);
                if (-1 != nItem)
                    TRACE("Item = %d\n", nItem);
            }
        }
    }
}



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


AnswerRe: how does an app know user selection in Explore? Pin
Sheng Jiang 蒋晟7-Apr-05 13:55
Sheng Jiang 蒋晟7-Apr-05 13:55 
GeneralRe: how does an app know user selection in Explore? Pin
David Crow7-Apr-05 16:29
David Crow7-Apr-05 16:29 
GeneralRe: how does an app know user selection in Explore? Pin
includeh107-Apr-05 17:20
includeh107-Apr-05 17:20 
GeneralRe: how does an app know user selection in Explore? Pin
Sheng Jiang 蒋晟8-Apr-05 2:33
Sheng Jiang 蒋晟8-Apr-05 2:33 
GeneralRe: how does an app know user selection in Explore? Pin
includeh107-Apr-05 18:18
includeh107-Apr-05 18:18 
GeneralRe: how does an app know user selection in Explore? Pin
David Crow8-Apr-05 2:43
David Crow8-Apr-05 2:43 
Generalsearch order of DOS execution Pin
includeh107-Apr-05 6:30
includeh107-Apr-05 6:30 
GeneralRe: search order of DOS execution Pin
David Crow7-Apr-05 6:51
David Crow7-Apr-05 6:51 
GeneralRe: search order of DOS execution Pin
includeh107-Apr-05 7:20
includeh107-Apr-05 7:20 
GeneralRe: search order of DOS execution Pin
David Crow7-Apr-05 7:57
David Crow7-Apr-05 7:57 
GeneralRe: search order of DOS execution Pin
includeh107-Apr-05 17:42
includeh107-Apr-05 17:42 
QuestionHow do you execute a file in memory, is it even possible... Pin
Jabish7-Apr-05 6:08
Jabish7-Apr-05 6:08 
AnswerRe: How do you execute a file in memory, is it even possible... Pin
David Crow7-Apr-05 6:55
David Crow7-Apr-05 6:55 
AnswerRe: How do you execute a file in memory, is it even possible... Pin
Michael Dunn7-Apr-05 7:19
sitebuilderMichael Dunn7-Apr-05 7:19 
GeneralRe: How do you execute a file in memory, is it even possible... Pin
LighthouseJ7-Apr-05 12:45
LighthouseJ7-Apr-05 12:45 
GeneralThank You... Pin
Jabish7-Apr-05 13:21
Jabish7-Apr-05 13:21 
GeneralRe: Thank You... Pin
David Crow7-Apr-05 16:31
David Crow7-Apr-05 16:31 

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.