Click here to Skip to main content
15,902,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString & TCHAR Conversions Pin
15-Jul-01 11:36
suss15-Jul-01 11:36 
GeneralRe: CString & TCHAR Conversions Pin
Oliver Anhuth18-Jul-01 21:23
Oliver Anhuth18-Jul-01 21:23 
GeneralOffice XP Menus Pin
15-Jul-01 11:18
suss15-Jul-01 11:18 
GeneralRe: Office XP Menus Pin
Ben Burnett15-Jul-01 13:07
Ben Burnett15-Jul-01 13:07 
GeneralRe: Office XP Menus Pin
James Millson15-Jul-01 13:28
James Millson15-Jul-01 13:28 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:26
JavaTony15-Jul-01 10:26 
GeneralRe: Please help with Menu Capture, thank you. Pin
Ben Burnett15-Jul-01 14:02
Ben Burnett15-Jul-01 14:02 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:25
JavaTony15-Jul-01 10:25 
Hi, I am trying the following code to enumerate child windows of Start Menu. However, it doesn't seem to work. Could you take a look and tell me what I did wrong or is there another way to do it. Thank you very much.

RECT rcMenu;

BOOL CaptureMenuToClipboard(BOOL fIncMouseCursor, BOOL fIncMenuBar)
{
/*BOOL bSuccess = FALSE;
POINT ptStartMenu;
ptStartMenu.x = 1;
ptStartMenu.y = 1;
HWND hStartMenu;
HWND hShellTrayWindow = FindWindow("Shell_TrayWnd", NULL);
hStartMenu = ChildWindowFromPoint(hShellTrayWindow, ptStartMenu);

if (EnumChildWindows(hStartMenu, (WNDENUMPROC)EnumChildProc, NULL))
bSuccess = TRUE;

if (bSuccess)
{
if (!CopyScreenToClipboard(NULL, &rcMenu, fIncMouseCursor))
bSuccess = FALSE;
}

return bSuccess;*/
}

BOOL CALLBACK EnumThreadWndProc(HWND hwnd, LPARAM lParam)
{
BOOL bFlag = FALSE;

if (GetWindowRect(hwnd, &rcMenu))
bFlag = TRUE;

return bFlag;
}



Smile | :) Wink | ;) Wink | ;) Wink | ;) Big Grin | :-D
GeneralPlease help with AutoScroll for Screen Capture Pin
JavaTony15-Jul-01 10:15
JavaTony15-Jul-01 10:15 
GeneralPlease help with Menu Capture, thank you. Pin
JavaTony15-Jul-01 10:07
JavaTony15-Jul-01 10:07 
GeneralRe: Please help with Menu Capture, thank you. Pin
Dever14-Oct-01 9:13
Dever14-Oct-01 9:13 
GeneralMIDL unsigned types Pin
Angel_Tsankov15-Jul-01 9:16
Angel_Tsankov15-Jul-01 9:16 
GeneralStrange Exception... Pin
Anders Molin15-Jul-01 7:40
professionalAnders Molin15-Jul-01 7:40 
GeneralRe: Strange Exception... Pin
Michael Dunn15-Jul-01 9:46
sitebuilderMichael Dunn15-Jul-01 9:46 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 9:59
professionalAnders Molin15-Jul-01 9:59 
GeneralRe: Strange Exception... Pin
Michael Dunn15-Jul-01 10:11
sitebuilderMichael Dunn15-Jul-01 10:11 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 10:16
professionalAnders Molin15-Jul-01 10:16 
GeneralProblem solved :-) Pin
Anders Molin16-Jul-01 12:26
professionalAnders Molin16-Jul-01 12:26 
GeneralRe: Strange Exception... Pin
Tim Deveaux15-Jul-01 12:39
Tim Deveaux15-Jul-01 12:39 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 22:30
professionalAnders Molin15-Jul-01 22:30 
GeneralRe: Strange Exception... Pin
Masaaki Onishi15-Jul-01 13:11
Masaaki Onishi15-Jul-01 13:11 
GeneralRe: Strange Exception... Pin
Anders Molin15-Jul-01 22:32
professionalAnders Molin15-Jul-01 22:32 
GeneralADO error in release build Pin
15-Jul-01 6:29
suss15-Jul-01 6:29 
QuestionAdd Table to DaoDatabase?? Pin
otvac15-Jul-01 1:45
otvac15-Jul-01 1:45 
AnswerRe: Add Table to DaoDatabase?? Pin
15-Jul-01 5:03
suss15-Jul-01 5:03 

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.