Click here to Skip to main content
16,011,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RichEditCtrl Pin
Erik Funkenbusch16-Jan-01 12:19
Erik Funkenbusch16-Jan-01 12:19 
QuestionThick Cursor - How to avoid it? Pin
14-Jan-01 17:01
suss14-Jan-01 17:01 
GeneralHiding the ToolbarControl at the right-top of CFileDialog Pin
Sjoerd van Leent14-Jan-01 10:49
Sjoerd van Leent14-Jan-01 10:49 
Questioncan i create a font to my native lang using VC Pin
13-Jan-01 22:53
suss13-Jan-01 22:53 
AnswerRe: can i create a font to my native lang using VC Pin
14-Jan-01 13:22
suss14-Jan-01 13:22 
GeneralUnicode clipboard Pin
13-Jan-01 16:08
suss13-Jan-01 16:08 
GeneralRe: Unicode clipboard Pin
Michael Dunn13-Jan-01 16:27
sitebuilderMichael Dunn13-Jan-01 16:27 
GeneralContext Menu and Mouse Cursor Pin
Patrick Dughi13-Jan-01 14:19
Patrick Dughi13-Jan-01 14:19 
New to MFC, so if this is a simple question, don't nail me for it;

I have a CEdit-like control I wrote from scratch. Baring some niceties, it works okay. One thing that always
bugs me though, when I right click to get my context-menu, the cursor (IDC_BEAM) stays a beam. I want it to
be an arrow (IDC_ARROW) as per normal usage. The menu is defined only programatically, ie, not loaded from
a menu resource or the like:

inside my OnContextMenu() {
CMenu pop;

pop.CreatePopupMenu();

pop.AppendMenu(MF_STRING,ID_IMPEDIT_UNDO,"&Undo");
pop.AppendMenu(MF_SEPARATOR,0," ");
pop.AppendMenu(MF_STRING,ID_IMPEDIT_CUT,"Cu&t");
pop.AppendMenu(MF_STRING,ID_IMPEDIT_COPY,"&Copy");
pop.AppendMenu(MF_STRING,ID_IMPEDIT_PASTE,"&Paste");
pop.AppendMenu(MF_STRING,ID_IMPEDIT_DELETE,"&Delete");
pop.AppendMenu(MF_SEPARATOR,0," ");
pop.AppendMenu(MF_STRING,ID_IMPEDIT_SELECTALL,"&Select All");

> validation/etc snipped <

pop.TrackPopupMenu(TPM_LEFTALIGN | TPM_LEFTBUTTON,
point.x, point.y, this, NULL);
pop.DestroyMenu();
}

So how do I change it's cursor to an arrow?
Generallogging on Pin
13-Jan-01 11:24
suss13-Jan-01 11:24 
GeneralRe: logging on Pin
Christian Graus13-Jan-01 12:58
protectorChristian Graus13-Jan-01 12:58 
GeneralRe: logging on Pin
Anders Molin14-Jan-01 6:03
professionalAnders Molin14-Jan-01 6:03 
Generaldll files Pin
13-Jan-01 10:44
suss13-Jan-01 10:44 
GeneralRe: dll files Pin
Anders Molin13-Jan-01 11:16
professionalAnders Molin13-Jan-01 11:16 
GeneralMyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
Dan Madden13-Jan-01 10:10
Dan Madden13-Jan-01 10:10 
GeneralRe: MyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
Michael Dunn13-Jan-01 10:17
sitebuilderMichael Dunn13-Jan-01 10:17 
GeneralRe: MyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
Dan Madden13-Jan-01 11:31
Dan Madden13-Jan-01 11:31 
GeneralRe: MyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
Michael Dunn13-Jan-01 13:56
sitebuilderMichael Dunn13-Jan-01 13:56 
GeneralRe: MyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
Dan Madden13-Jan-01 21:44
Dan Madden13-Jan-01 21:44 
GeneralRe: MyMAPIDlg.obj : error LNK2001: unresolved external symbol _MAPIReadMail@24 Pin
21-Jan-01 21:14
suss21-Jan-01 21:14 
QuestionSystem menu with no title bar??? Pin
13-Jan-01 6:27
suss13-Jan-01 6:27 
GeneralImage list control Pin
subir talukder13-Jan-01 5:14
subir talukder13-Jan-01 5:14 
GeneralRe: Image list control Pin
Christian Graus13-Jan-01 8:52
protectorChristian Graus13-Jan-01 8:52 
GeneralRe: Image list control Pin
subir talukder13-Jan-01 20:35
subir talukder13-Jan-01 20:35 
GeneralNetwork Communication Pin
The Homer13-Jan-01 2:48
The Homer13-Jan-01 2:48 
GeneralRe: Network Communication Pin
Anders Molin13-Jan-01 7:15
professionalAnders Molin13-Jan-01 7:15 

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.