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

C / C++ / MFC

 
Generalchange desktop backgroun color Pin
repekcan7-Jul-04 23:24
repekcan7-Jul-04 23:24 
GeneralRe: change desktop backgroun color Pin
Mike Dimmick8-Jul-04 0:54
Mike Dimmick8-Jul-04 0:54 
Generalthanks your help Pin
repekcan8-Jul-04 1:03
repekcan8-Jul-04 1:03 
GeneralVC++ Automation Word 2000 Error : Unable to Disable "Cntrl+C" Pin
vishalmore7-Jul-04 23:16
vishalmore7-Jul-04 23:16 
GeneralODBC API Pin
Yulianto.7-Jul-04 23:11
Yulianto.7-Jul-04 23:11 
GeneralRe: ODBC API Pin
Johan Rosengren8-Jul-04 0:24
Johan Rosengren8-Jul-04 0:24 
GeneralOnMouseMove value problem Pin
d0153030y7-Jul-04 21:48
sussd0153030y7-Jul-04 21:48 
GeneralRe: onmousemove value problem Pin
Mike Dimmick8-Jul-04 1:17
Mike Dimmick8-Jul-04 1:17 
What are you trying to do? Change context menu items dependent on where the mouse pointer is?

While TrackPopupMenu is running, it has mouse capture. That is, all mouse messages go to the menu, even if the mouse isn't over it. You can't change the contents of a popup when it's displayed, anyway, because TrackPopupMenu runs a modal loop (i.e. it doesn't return until the user either chooses a menu item or clicks away from it).

The user also won't expect this to change while they have a popup menu item. Normally the contents of a context menu reflect the currently selected item in the document at the time the menu was selected.

I suggest working out which menu items to show in the button click handler. Also, for consistency with Microsoft applications and the Windows shell, the context menu should be shown on button UP, not button down (try it on Explorer).

Stability. What an interesting concept. -- Chris Maunder
Generalfread() with excel and powerpoint files Pin
Member 3600827-Jul-04 20:27
Member 3600827-Jul-04 20:27 
GeneralRe: fread() with excel and powerpoint files Pin
vmaltsev8-Jul-04 2:03
vmaltsev8-Jul-04 2:03 
GeneralRe: fread() with excel and powerpoint files Pin
Member 3600828-Jul-04 2:08
Member 3600828-Jul-04 2:08 
GeneralRe: fread() with excel and powerpoint files Pin
vmaltsev8-Jul-04 2:50
vmaltsev8-Jul-04 2:50 
GeneralRe: fread() with excel and powerpoint files Pin
David Crow8-Jul-04 3:17
David Crow8-Jul-04 3:17 
GeneralAbout fatal error,when using customized template class in MFC proj. Pin
bg2sc7-Jul-04 20:06
bg2sc7-Jul-04 20:06 
GeneralRe: About fatal error,when using customized template class in MFC proj. Pin
Mike Dimmick8-Jul-04 1:57
Mike Dimmick8-Jul-04 1:57 
GeneralTiff to raw Pin
rita12027-Jul-04 19:52
rita12027-Jul-04 19:52 
GeneralRe: Tiff to raw Pin
ThatsAlok7-Jul-04 22:32
ThatsAlok7-Jul-04 22:32 
GeneralWhy can't U Update dynamic in sort mode Pin
inlandchris7-Jul-04 18:34
inlandchris7-Jul-04 18:34 
QuestionHow can i manipulate Registry Pin
Zeeshan Bilal7-Jul-04 18:29
Zeeshan Bilal7-Jul-04 18:29 
AnswerRe: How can i manipulate Registry Pin
Yogesh Kshatriya7-Jul-04 19:21
Yogesh Kshatriya7-Jul-04 19:21 
GeneralError in Open key and Query Pin
Zeeshan Bilal7-Jul-04 20:31
Zeeshan Bilal7-Jul-04 20:31 
GeneralRe: Error in Open key and Query Pin
Yogesh Kshatriya7-Jul-04 22:05
Yogesh Kshatriya7-Jul-04 22:05 
AnswerRe: How can i manipulate Registry Pin
Yulianto.7-Jul-04 22:51
Yulianto.7-Jul-04 22:51 
Questionhow to send mail without smtp server? Pin
bugtwo7-Jul-04 16:44
bugtwo7-Jul-04 16:44 
AnswerRe: how to send mail without smtp server? Pin
palbano7-Jul-04 17:18
palbano7-Jul-04 17:18 

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.