Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: determinant of matrix in c N*N dimension return error at //answer[r][s]=input[p][q]; Pin
mybm110-Sep-14 19:14
mybm110-Sep-14 19:14 
Questionmaximum number of samples VC++ can dump in real time plotting Pin
niranjan arya2-Sep-14 21:10
niranjan arya2-Sep-14 21:10 
AnswerRe: maximum number of samples VC++ can dump in real time plotting Pin
Albert Holguin3-Sep-14 3:44
professionalAlbert Holguin3-Sep-14 3:44 
QuestionIs there a way to force a Windows application to always be on top? Pin
charlieg2-Sep-14 15:27
charlieg2-Sep-14 15:27 
AnswerRe: Is there a way to force a Windows application to always be on top? Pin
«_Superman_»2-Sep-14 17:45
professional«_Superman_»2-Sep-14 17:45 
GeneralRe: Is there a way to force a Windows application to always be on top? Pin
charlieg3-Sep-14 4:11
charlieg3-Sep-14 4:11 
AnswerRe: Is there a way to force a Windows application to always be on top? Pin
Joe Woodbury3-Sep-14 15:04
professionalJoe Woodbury3-Sep-14 15:04 
QuestionCMenu with Bitmap icon Pin
Drakesal1-Sep-14 10:16
Drakesal1-Sep-14 10:16 
Hi i am searching many information about this, but i only find complex code. I simply need a context menu with icons. Now i post my code can you help me to complete?

CMenu Menu;

Menu.CreatePopupMenu();

Menu.AppendMenuW(MF_STRING,ID_POPUP_1,(LPCTSTR)_T("Item 1"));

Menu.AppendMenuW(MF_STRING,ID_POPUP_2,(LPCTSTR)_T("Item 2"));

Menu.AppendMenuW(MF_STRING,ID_POPUP_3,(LPCTSTR)_T("Item 3"));

theApp.GetContextMenuManager()->ShowPopupMenu(Menu, point.x, point.y, this, TRUE);


I have seen on MSDN i have to use this:

// Load bitmaps from resource. Both m_CheckBitmap and m_UnCheckBitmap 
// are member variables of CMainFrame class of type CBitmap.
ASSERT(m_CheckBitmap.LoadBitmap(IDB_CHECKBITMAP));
ASSERT(m_UnCheckBitmap.LoadBitmap(IDB_UNCHECKBITMAP));

// Associate bitmaps with the "Bitmap" menu item. 
CMenu* mmenu = GetMenu();
CMenu* submenu = mmenu->GetSubMenu(4);
ASSERT(submenu->SetMenuItemBitmaps(ID_MENU_BITMAP, MF_BYCOMMAND, 
   &m_CheckBitmap, &m_UnCheckBitmap));


But i think my situation is more easy than example, but maybe i have problems to merge the two code parts,
please can you help me i don't think take you more time.
Thanks very much.
AnswerRe: CMenu with Bitmap icon Pin
Richard MacCutchan1-Sep-14 21:17
mveRichard MacCutchan1-Sep-14 21:17 
GeneralRe: CMenu with Bitmap icon Pin
Drakesal2-Sep-14 3:01
Drakesal2-Sep-14 3:01 
GeneralRe: CMenu with Bitmap icon Pin
Richard MacCutchan2-Sep-14 4:00
mveRichard MacCutchan2-Sep-14 4:00 
GeneralRe: CMenu with Bitmap icon Pin
_Flaviu2-Sep-14 4:58
_Flaviu2-Sep-14 4:58 
AnswerRe: CMenu with Bitmap icon Pin
Maximilien2-Sep-14 5:31
Maximilien2-Sep-14 5:31 
GeneralRe: CMenu with Bitmap icon Pin
Drakesal2-Sep-14 6:59
Drakesal2-Sep-14 6:59 
GeneralRe: CMenu with Bitmap icon Pin
Maximilien2-Sep-14 7:56
Maximilien2-Sep-14 7:56 
GeneralRe: CMenu with Bitmap icon Pin
Drakesal2-Sep-14 20:54
Drakesal2-Sep-14 20:54 
QuestionC++ Open the COM Port on Windows CE Device Pin
baranils1-Sep-14 9:27
baranils1-Sep-14 9:27 
GeneralRe: C++ Open the COM Port on Windows CE Device Pin
CPallini1-Sep-14 9:52
mveCPallini1-Sep-14 9:52 
GeneralRe: C++ Open the COM Port on Windows CE Device Pin
baranils1-Sep-14 19:06
baranils1-Sep-14 19:06 
GeneralRe: C++ Open the COM Port on Windows CE Device Pin
CPallini1-Sep-14 19:43
mveCPallini1-Sep-14 19:43 
GeneralRe: C++ Open the COM Port on Windows CE Device Pin
Randor 2-Sep-14 12:14
professional Randor 2-Sep-14 12:14 
QuestionRe: C++ Open the COM Port on Windows CE Device Pin
CPallini2-Sep-14 20:25
mveCPallini2-Sep-14 20:25 
AnswerRe: C++ Open the COM Port on Windows CE Device Pin
leon de boer2-Sep-14 21:53
leon de boer2-Sep-14 21:53 
GeneralRe: C++ Open the COM Port on Windows CE Device Pin
CPallini2-Sep-14 21:59
mveCPallini2-Sep-14 21:59 
QuestionHow to fix the first column of a CListView in MFC Pin
sma123#31-Aug-14 23:57
sma123#31-Aug-14 23:57 

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.