Click here to Skip to main content
15,916,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 18:21
protectorChristian Graus24-Aug-01 18:21 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Michael Dunn24-Aug-01 18:20
sitebuilderMichael Dunn24-Aug-01 18:20 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 18:26
protectorChristian Graus24-Aug-01 18:26 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Ben Burnett24-Aug-01 18:38
Ben Burnett24-Aug-01 18:38 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Christian Graus24-Aug-01 20:03
protectorChristian Graus24-Aug-01 20:03 
GeneralRe: ADO/ATL problems - my life is hell. Pin
Tim Deveaux25-Aug-01 14:54
Tim Deveaux25-Aug-01 14:54 
GeneralRe: ADO/ATL problems - my life is hell. Pin
24-Aug-01 23:20
suss24-Aug-01 23:20 
GeneralGetMenuItemInfo Pin
24-Aug-01 16:06
suss24-Aug-01 16:06 
I can't seem to get the GetMenuItemInfo function to work.
Here's my code, please tell me what I'm doing wrong.

HMENU hMenu = CreateMenu();
HMENU hPopupMenu = CreatePopupMenu();

::InsertMenu(hPopupMenu, 0, MF_STRING | MF_BYPOSITION, 0, "My PopupMenu");
::InsertMenu(hMenu, 0, MF_POPUP | MF_BYPOSITION, (UINT)hPopupMenu, "My Menu");

::SetMenu(GetSafeHwnd(), hMenu);

MENUITEMINFO mii;
memset(&mii, 0, sizeof(MENUITEMINFO));

mii.fMask = MIIM_STATE;

if(::GetMenuItemInfo(hMenu, 0, FALSE, &mii))
{
mii.fMask = mii.fMask | MIIM_STATE;
mii.fState = MFS_CHECKED;

::SetMenuItemInfo(hMenu, 0, TRUE, &mii);
}
else
AfxMessageBox("Err!");


GeneralRe: GetMenuItemInfo Pin
Michael Dunn24-Aug-01 16:33
sitebuilderMichael Dunn24-Aug-01 16:33 
GeneralCListCtrl - can someone make this code from a codeproject article workrk Pin
DanYELL24-Aug-01 15:59
DanYELL24-Aug-01 15:59 
GeneralRe: CListCtrl - can someone make this code from a codeproject article workrk Pin
Michael Dunn24-Aug-01 16:36
sitebuilderMichael Dunn24-Aug-01 16:36 
GeneralDialog Sizing Pin
Bret Faller24-Aug-01 14:30
Bret Faller24-Aug-01 14:30 
GeneralMFC- CFileFind Pin
The_Server24-Aug-01 14:08
The_Server24-Aug-01 14:08 
GeneralRe: MFC- CFileFind Pin
Matt Gullett24-Aug-01 14:39
Matt Gullett24-Aug-01 14:39 
GeneralRe: MFC- CFileFind Pin
Carlos Antollini24-Aug-01 17:02
Carlos Antollini24-Aug-01 17:02 
GeneralRotating Dialog Pin
Bret Faller24-Aug-01 14:01
Bret Faller24-Aug-01 14:01 
GeneralTrackMouseEvent Pin
Bret Faller24-Aug-01 13:48
Bret Faller24-Aug-01 13:48 
GeneralPassing a callback to a DLL. Pin
Jamie Nordmeyer24-Aug-01 13:01
Jamie Nordmeyer24-Aug-01 13:01 
GeneralRe: Passing a callback to a DLL. Pin
The_Server24-Aug-01 13:41
The_Server24-Aug-01 13:41 
GeneralRe: Passing a callback to a DLL. Pin
Andrew Peace24-Aug-01 13:51
Andrew Peace24-Aug-01 13:51 
GeneralUsing AfxBeginThread() Pin
Bryan Tyson24-Aug-01 12:26
Bryan Tyson24-Aug-01 12:26 
GeneralRe: Using AfxBeginThread() Pin
Andrew Peace24-Aug-01 13:09
Andrew Peace24-Aug-01 13:09 
QuestionChage background color of a SDI that is attached to a ODBC data source? Pin
Bryan Tyson24-Aug-01 12:22
Bryan Tyson24-Aug-01 12:22 
AnswerRe: Chage background color of a SDI that is attached to a ODBC data source? Pin
Ben Burnett24-Aug-01 15:43
Ben Burnett24-Aug-01 15:43 
GeneralListView font Pin
Ganesh Ramaswamy24-Aug-01 11:32
Ganesh Ramaswamy24-Aug-01 11:32 

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.