Click here to Skip to main content
15,926,290 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extra menu on right click Pin
Wolfram Steinke6-Oct-01 12:59
Wolfram Steinke6-Oct-01 12:59 
GeneralConnection Question Pin
6-Oct-01 10:10
suss6-Oct-01 10:10 
GeneralRe: Connection Question Pin
Shadi Al-Kahwaji7-Oct-01 0:32
Shadi Al-Kahwaji7-Oct-01 0:32 
QuestionHow to create modal windows? Pin
Pipe6-Oct-01 5:09
Pipe6-Oct-01 5:09 
AnswerRe: How to create modal windows? Pin
Christian Graus6-Oct-01 9:58
protectorChristian Graus6-Oct-01 9:58 
AnswerRe: How to create modal windows? Pin
Tomasz Sowinski8-Oct-01 1:46
Tomasz Sowinski8-Oct-01 1:46 
GeneralRe: How to create modal windows? Pin
Pipe8-Oct-01 6:51
Pipe8-Oct-01 6:51 
GeneralRe: How to create modal windows? Pin
Tomasz Sowinski8-Oct-01 7:18
Tomasz Sowinski8-Oct-01 7:18 
You basically have two options now:

1) find out all windows (EnumThreadWindows) in the thread and disable them (EnableWindow(hwnd, FALSE)). The only non-disabled window will behave like modal dialog

2) control the thread's message queue. Monitor all input messages (WM_KEYxxx, WM_LBUTTONDOWN, etc) messages and don't dispatch them if they are addressed to window you want to disable.

Personally, I'd try version 1.

Tomasz Sowinski -- http://www.shooltz.com
AnswerRe: How to create modal windows? Pin
Fazlul Kabir8-Oct-01 7:12
Fazlul Kabir8-Oct-01 7:12 
GeneralRe: How to create modal windows? Pin
Tomasz Sowinski8-Oct-01 7:22
Tomasz Sowinski8-Oct-01 7:22 
GeneralRe: How to create modal windows? Pin
Fazlul Kabir8-Oct-01 14:18
Fazlul Kabir8-Oct-01 14:18 
Generalbitmap image problem Pin
parag6-Oct-01 3:08
parag6-Oct-01 3:08 
GeneralRe: bitmap image problem Pin
Christian Graus6-Oct-01 10:00
protectorChristian Graus6-Oct-01 10:00 
GeneralOracle and ADO Pin
Mr_Byte5-Oct-01 23:19
Mr_Byte5-Oct-01 23:19 
GeneralRe: Oracle and ADO Pin
Michael P Butler6-Oct-01 7:02
Michael P Butler6-Oct-01 7:02 
GeneralRe: Oracle and ADO Pin
Mr_Byte6-Oct-01 7:14
Mr_Byte6-Oct-01 7:14 
GeneralRe: Oracle and ADO Pin
Michael P Butler6-Oct-01 7:24
Michael P Butler6-Oct-01 7:24 
GeneralRe: Oracle and ADO Pin
Mr_Byte6-Oct-01 8:16
Mr_Byte6-Oct-01 8:16 
GeneralExit When Enter Key is Pressed Pin
5-Oct-01 21:50
suss5-Oct-01 21:50 
GeneralRe: Exit When Enter Key is Pressed Pin
Derek Lakin5-Oct-01 23:08
Derek Lakin5-Oct-01 23:08 
GeneralRe: Exit When Enter Key is Pressed Pin
7-Oct-01 15:59
suss7-Oct-01 15:59 
GeneralRe: Exit When Enter Key is Pressed Pin
| mProject |6-Oct-01 0:10
| mProject |6-Oct-01 0:10 
GeneralRe: Exit When Enter Key is Pressed Pin
Christian Graus6-Oct-01 0:14
protectorChristian Graus6-Oct-01 0:14 
Generaluser defined message Pin
Maer7275-Oct-01 20:15
Maer7275-Oct-01 20:15 
GeneralRe: user defined message Pin
Michael Dunn5-Oct-01 21:31
sitebuilderMichael Dunn5-Oct-01 21:31 

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.