Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Mapping Keyboard messages to mouse messages Pin
Tomasz Sowinski5-Aug-02 23:58
Tomasz Sowinski5-Aug-02 23:58 
GeneralRe: Mapping Keyboard messages to mouse messages Pin
sridharj6-Aug-02 0:25
sridharj6-Aug-02 0:25 
GeneralRe: Mapping Keyboard messages to mouse messages Pin
Tomasz Sowinski6-Aug-02 0:33
Tomasz Sowinski6-Aug-02 0:33 
GeneralRe: Mapping Keyboard messages to mouse messages Pin
sridharj6-Aug-02 0:39
sridharj6-Aug-02 0:39 
GeneralChange the Cursor Pin
LittleYellowBird5-Aug-02 22:58
LittleYellowBird5-Aug-02 22:58 
GeneralRe: Change the Cursor Pin
RChin5-Aug-02 23:06
RChin5-Aug-02 23:06 
GeneralRe: Change the Cursor Pin
LittleYellowBird5-Aug-02 23:28
LittleYellowBird5-Aug-02 23:28 
GeneralRe: Change the Cursor Pin
benjymous5-Aug-02 23:27
benjymous5-Aug-02 23:27 
Either the Begin..End functions given in the other post, or my personal favourite (if you're using MFC, that is) - add a CWaitCursor object to your functions's variables like so

void CMyClass::DoSomethingThatTakesAges()
{
  CWaitCursor xWait;
  
  .. do whatever processing you want here as per usual..
  
}



Whilst the CWaitCursor object lives, it'll make your mouse pointer into an hourglass, so you can easily drop these as the first line of any function that does any kind of long period of processing (and they can stack quite happily - the mouse stays as an hourglass as long as there is at least one CWaitCursor object alive)

--
Help me! I'm turning into a grapefruit!
GeneralRe: Change the Cursor Pin
LittleYellowBird5-Aug-02 23:40
LittleYellowBird5-Aug-02 23:40 
GeneralMDI APP Pin
wong19075-Aug-02 22:30
wong19075-Aug-02 22:30 
GeneralShellexecute() with an url.. Pin
Neha5-Aug-02 22:21
Neha5-Aug-02 22:21 
GeneralRe: Shellexecute() with an url.. Pin
sridharj5-Aug-02 23:18
sridharj5-Aug-02 23:18 
GeneralForce explorer to select a file Pin
Chris Losinger5-Aug-02 21:49
professionalChris Losinger5-Aug-02 21:49 
GeneralRe: Force explorer to select a file Pin
_Magnus_5-Aug-02 22:03
_Magnus_5-Aug-02 22:03 
GeneralHelp me..... Pin
Ta_Tee4735-Aug-02 21:34
Ta_Tee4735-Aug-02 21:34 
GeneralRe: Help me..... Pin
Christian Graus5-Aug-02 22:07
protectorChristian Graus5-Aug-02 22:07 
GeneralUpdate Menu Pin
Mic5-Aug-02 21:13
Mic5-Aug-02 21:13 
GeneralRe: Update Menu Pin
Dor6-Aug-02 1:22
Dor6-Aug-02 1:22 
GeneralRe: Update Menu Pin
Mic6-Aug-02 2:14
Mic6-Aug-02 2:14 
GeneralIs it possible to do Pin
suresh_sathya5-Aug-02 20:15
suresh_sathya5-Aug-02 20:15 
GeneralRe: Is it possible to do Pin
RChin5-Aug-02 21:01
RChin5-Aug-02 21:01 
GeneralADO problem Pin
unknown soldier5-Aug-02 18:23
unknown soldier5-Aug-02 18:23 
GeneralRe: ADO problem Pin
RChin5-Aug-02 21:12
RChin5-Aug-02 21:12 
Generalnew class ... Pin
AlinRO5-Aug-02 18:04
AlinRO5-Aug-02 18:04 
GeneralRe: new class ... Pin
Nish Nishant5-Aug-02 18:21
sitebuilderNish Nishant5-Aug-02 18:21 

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.