Click here to Skip to main content
15,927,347 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTreeCtrl Help Please! Pin
Rassman21-Nov-01 2:11
Rassman21-Nov-01 2:11 
QuestionChanging scrollbar colors? Pin
Jim A. Johnson19-Nov-01 12:55
Jim A. Johnson19-Nov-01 12:55 
AnswerRe: Changing scrollbar colors? Pin
Bernhard19-Nov-01 23:32
Bernhard19-Nov-01 23:32 
GeneralRe: Changing scrollbar colors? Pin
Jim A. Johnson20-Nov-01 10:13
Jim A. Johnson20-Nov-01 10:13 
GeneralRe: Changing scrollbar colors? Pin
Bernhard20-Nov-01 19:22
Bernhard20-Nov-01 19:22 
GeneralNews: Ultimate Grid for MFC 5.0 released today Pin
Ed Worsfold19-Nov-01 11:45
Ed Worsfold19-Nov-01 11:45 
QuestionHow can I lock up my application? Pin
Cathy19-Nov-01 11:28
Cathy19-Nov-01 11:28 
AnswerRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 12:12
Anna-Jayne Metcalfe19-Nov-01 12:12 
Can you give more details on what you're trying to achieve Cathy? I'm a little unclear what you mean by "but the script re-enables it".

Usually freezing the UI thread is a bad idea because then the UI won't paint etc. etc...

I'm presuming you're doing some non-reentrant activity in a worker thread, and you need to stop commands whilst it's busy.

However, if EnableWindow() isn't cutting the mustard for you and you just need to prevent menu/toolbar activity, selectively trapping CN_COMMAND messages in an OnCmdMsg() override in the mainframe might achieve what you need. Remember to let CN_UPDATE_COMMAND_UI calls through though or your toolbars etc. won't update properly.

Good luck Rose | [Rose]

Andy Metcalfe - Sonardyne International Ltd

Trouble with resource IDs? Try the Resource ID Organiser Add-In for Visual C++ 5.0/6.0

"I'm just another 'S' bend in the internet. A ton of stuff goes through my system, and some of the hairer, stickier and lumpier stuff sticks."
- Chris Maunder (I just couldn't let that one past Wink | ;) )
GeneralRe: How can I lock up my application? Pin
Cathy19-Nov-01 12:29
Cathy19-Nov-01 12:29 
GeneralRe: How can I lock up my application? Pin
Nish Nishant19-Nov-01 13:03
sitebuilderNish Nishant19-Nov-01 13:03 
GeneralRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 22:56
Anna-Jayne Metcalfe19-Nov-01 22:56 
GeneralRe: How can I lock up my application? Pin
Anna-Jayne Metcalfe19-Nov-01 22:52
Anna-Jayne Metcalfe19-Nov-01 22:52 
Generalc++ and database Pin
19-Nov-01 10:38
suss19-Nov-01 10:38 
GeneralMain Dialog & TabPage Pin
XAlien19-Nov-01 10:36
XAlien19-Nov-01 10:36 
GeneralRe: Main Dialog & TabPage Pin
luckylourson19-Nov-01 21:32
luckylourson19-Nov-01 21:32 
GeneralProblems selecting correct override Pin
Bill Wilson19-Nov-01 10:22
Bill Wilson19-Nov-01 10:22 
GeneralProblem solved, feeling stupid Pin
Bill Wilson19-Nov-01 11:19
Bill Wilson19-Nov-01 11:19 
GeneralRe: Problems selecting correct override Pin
Joaquín M López Muñoz19-Nov-01 11:20
Joaquín M López Muñoz19-Nov-01 11:20 
GeneralMemory DC at a differant BPP Pin
clintsinger19-Nov-01 9:40
clintsinger19-Nov-01 9:40 
GeneralRe: Memory DC at a differant BPP Pin
Christian Graus19-Nov-01 10:12
protectorChristian Graus19-Nov-01 10:12 
GeneralRe: Memory DC at a differant BPP Pin
clintsinger19-Nov-01 18:51
clintsinger19-Nov-01 18:51 
GeneralRe: Memory DC at a differant BPP Pin
Christian Graus19-Nov-01 18:57
protectorChristian Graus19-Nov-01 18:57 
QuestionHow??? Pin
pcverden19-Nov-01 9:02
pcverden19-Nov-01 9:02 
AnswerRe: How??? Another Home Work??? Pin
Carlos Antollini19-Nov-01 9:10
Carlos Antollini19-Nov-01 9:10 
GeneralRe: How??? Another Home Work??? Pin
pcverden19-Nov-01 9:52
pcverden19-Nov-01 9:52 

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.