Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreating Jet 3.6 Database using DAO? Pin
17-Apr-01 5:04
suss17-Apr-01 5:04 
AnswerRe: Creating Jet 3.6 Database using DAO? Pin
Ammar17-Apr-01 23:06
Ammar17-Apr-01 23:06 
AnswerRe: Creating Jet 3.6 Database using DAO? Pin
18-Apr-01 0:28
suss18-Apr-01 0:28 
GeneralCFormView ... Pin
Hadi Rezaee17-Apr-01 4:29
Hadi Rezaee17-Apr-01 4:29 
GeneralOn navigate method do not add the resource or file to the history list Pin
17-Apr-01 4:02
suss17-Apr-01 4:02 
GeneralObtaining URL from OnBeforeNavigate2Explorer1 Pin
Cesario Simoes, jr17-Apr-01 2:50
Cesario Simoes, jr17-Apr-01 2:50 
GeneralSomething like this Pin
17-Apr-01 10:29
suss17-Apr-01 10:29 
GeneralContext menu bug?! Pin
Deian16-Apr-01 21:28
Deian16-Apr-01 21:28 
I have noticed an anoying bug in my context menu. Here it is:

I have a SDI App, with the base view class of CTreeView. I have split the frame in two views - Left is Tree, right is the ListView.
When i insert the following code in to the OnContextMenu function

CMenu menu;
menu.LoadMenu(IDR_MAIN);

CMenu pContext = menu.GetSubMenu(0);
pContext->TrackPopupMenu(this->m_hWnd, TPM_LEFTBUTTON|TPM_LEFTALIGN|TPM_RIGHTBUTTON,
point.x, point.y, AfxGetMainWnd());

(I'm not sure if the parameters are in the same order - if they are not - ignore it, in the code they are correct)

The first time I right click it shows the popup menu which contains 2 functions, and also adds some elements from the help menu?! The second time i rclick it shows it as it should be. But if I display the context menu associated with the caption (Restore/Minimize/Close etc.) it makes the same stupid mistake.

What am I doing wrong?!

Any help appreciated,

DeianMad | :mad:
GeneralRe: Context menu bug?! Pin
Deian16-Apr-01 23:31
Deian16-Apr-01 23:31 
QuestionCan i change the Menu's BAckground Color Pin
16-Apr-01 20:23
suss16-Apr-01 20:23 
AnswerRe: Can i change the Menu's BAckground Color Pin
3-Sep-01 0:26
suss3-Sep-01 0:26 
GeneralRefresh hardware configuration Pin
16-Apr-01 18:34
suss16-Apr-01 18:34 
GeneralStoring data Pin
Michael Martin16-Apr-01 18:15
professionalMichael Martin16-Apr-01 18:15 
GeneralRe: Storing data Pin
Christian Graus16-Apr-01 18:47
protectorChristian Graus16-Apr-01 18:47 
GeneralRe: Storing data Pin
Kannan Kalyanaraman16-Apr-01 18:55
Kannan Kalyanaraman16-Apr-01 18:55 
QuestionHow to add a CScrollView on a dialog-based app? Pin
16-Apr-01 17:02
suss16-Apr-01 17:02 
AnswerRe: How to add a CScrollView on a dialog-based app? Pin
16-Apr-01 17:38
suss16-Apr-01 17:38 
GeneralRe: How to add a CScrollView on a dialog-based app? Pin
Kannan Kalyanaraman16-Apr-01 20:06
Kannan Kalyanaraman16-Apr-01 20:06 
QuestionMake DSN (ODBC) with InstallShield? Pin
16-Apr-01 11:34
suss16-Apr-01 11:34 
AnswerRe: Make DSN (ODBC) with InstallShield? Pin
16-Apr-01 14:45
suss16-Apr-01 14:45 
QuestionSubclassing RichEdit? Pin
Richard Comish16-Apr-01 11:22
Richard Comish16-Apr-01 11:22 
GeneralIPicture Pin
orcun colak16-Apr-01 11:15
orcun colak16-Apr-01 11:15 
GeneralRe: IPicture Pin
Kannan Kalyanaraman16-Apr-01 18:27
Kannan Kalyanaraman16-Apr-01 18:27 
GeneralInvalid Address specified to RtlFreeHeap Pin
Rainer Mangold16-Apr-01 10:31
Rainer Mangold16-Apr-01 10:31 
GeneralRe: Invalid Address specified to RtlFreeHeap Pin
Michael Dunn16-Apr-01 16:28
sitebuilderMichael Dunn16-Apr-01 16:28 

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.