Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding amount of memory allocated for vector objects Pin
Anonymous23-Mar-04 20:17
Anonymous23-Mar-04 20:17 
GeneralRe: Finding amount of memory allocated for vector objects Pin
Tim Smith24-Mar-04 3:58
Tim Smith24-Mar-04 3:58 
GeneralRe: Finding amount of memory allocated for vector objects Pin
Paul Ranson24-Mar-04 4:14
Paul Ranson24-Mar-04 4:14 
QuestionMailing Lists? Pin
Anonymous23-Mar-04 20:05
Anonymous23-Mar-04 20:05 
AnswerRe: Mailing Lists? Pin
Michael P Butler23-Mar-04 23:40
Michael P Butler23-Mar-04 23:40 
GeneralGetCursorPos in Borland CPP Pin
ScarberryProd23-Mar-04 19:54
ScarberryProd23-Mar-04 19:54 
GeneralRe: GetCursorPos in Borland CPP Pin
ScarberryProd23-Mar-04 20:01
ScarberryProd23-Mar-04 20:01 
GeneralRe: GetCursorPos in Borland CPP Pin
Mike Dimmick24-Mar-04 2:45
Mike Dimmick24-Mar-04 2:45 
Just a stylistic point: if you're creating a popup menu in response to a mouse message, you typically want to create the menu where the pointer was when the mouse was clicked, not where it is now. You get this co-ordinate in the message's lParam (see for example WM_LBUTTONDOWN). I'm not familiar with Borland C++ Builder, so I don't know how messages are processed in your application.

The exception to this is if you're handling a system tray icon notification message, where you don't get the parameters to the original message (and hence the location of the click).

You should use the message's cursor position because the user may have moved the mouse since clicking. If your application, or the system, is busy, this may cause the menu to appear somewhere different, which confuses the user.

Stability. What an interesting concept. -- Chris Maunder
GeneralDrop the content to Toolbar button Pin
Neha23-Mar-04 18:46
Neha23-Mar-04 18:46 
GeneralBuilding from the command line. Pin
Prakash Nadar23-Mar-04 16:56
Prakash Nadar23-Mar-04 16:56 
GeneralRe: Building from the command line. Pin
Ryan Binns23-Mar-04 17:08
Ryan Binns23-Mar-04 17:08 
GeneralRe: Building from the command line. Pin
Prakash Nadar23-Mar-04 17:15
Prakash Nadar23-Mar-04 17:15 
GeneralRe: Building from the command line. Pin
Mike Dimmick24-Mar-04 2:47
Mike Dimmick24-Mar-04 2:47 
GeneralRe: Building from the command line. Pin
David Crow24-Mar-04 2:50
David Crow24-Mar-04 2:50 
GeneralRe: Building from the command line. Pin
Prakash Nadar24-Mar-04 2:58
Prakash Nadar24-Mar-04 2:58 
GeneralRe: Building from the command line. Pin
David Crow24-Mar-04 3:14
David Crow24-Mar-04 3:14 
GeneralRe: Building from the command line. Pin
Prakash Nadar24-Mar-04 3:25
Prakash Nadar24-Mar-04 3:25 
GeneralRe: Building from the command line. Pin
David Crow24-Mar-04 3:30
David Crow24-Mar-04 3:30 
GeneralRe: Building from the command line. Pin
Prakash Nadar24-Mar-04 4:14
Prakash Nadar24-Mar-04 4:14 
GeneralRe: Building from the command line. Pin
David Crow24-Mar-04 4:20
David Crow24-Mar-04 4:20 
QuestionHow to hide or show tray icon in Windows XP Pin
Arcrest23-Mar-04 16:52
Arcrest23-Mar-04 16:52 
GeneralUpdate Bitmaps in subroutine Pin
Dimenser23-Mar-04 16:46
Dimenser23-Mar-04 16:46 
GeneralRe: Update Bitmaps in subroutine Pin
Ryan Binns23-Mar-04 17:01
Ryan Binns23-Mar-04 17:01 
GeneralRe: Update Bitmaps in subroutine Pin
Dimenser24-Mar-04 16:57
Dimenser24-Mar-04 16:57 
Generala trouble problem about CMSCOMM.OCX Pin
Grrrr23-Mar-04 16:42
Grrrr23-Mar-04 16:42 

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.