Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: function with multiple arguments Pin
Michael Dunn15-Jan-04 5:09
sitebuilderMichael Dunn15-Jan-04 5:09 
Generalto lock an application Pin
Idefix15-Jan-04 1:41
Idefix15-Jan-04 1:41 
GeneralRe: to lock an application [modified] Pin
Marek Grzenkowicz15-Jan-04 4:17
Marek Grzenkowicz15-Jan-04 4:17 
GeneralRe: to lock an application Pin
Idefix15-Jan-04 5:01
Idefix15-Jan-04 5:01 
GeneralRe: to lock an application Pin
Diddy15-Jan-04 5:37
Diddy15-Jan-04 5:37 
GeneralRe: to lock an application Pin
Rage15-Jan-04 7:42
professionalRage15-Jan-04 7:42 
GeneralRe: to lock an application Pin
David Crow15-Jan-04 7:49
David Crow15-Jan-04 7:49 
GeneralRe: to lock an application Pin
Idefix22-Jan-04 0:37
Idefix22-Jan-04 0:37 
Many thanks for your suggestions.

I realized the application lock to filter out
the messages WM_KEYDOWN, WM_SETCURSOR, WM_MOUSEMOVE ...

I use the WindowProc from CMainframe and PreTranslateMessage from the
Application to keep the user event in mind.
I set a timer to pull the last user event and divided the time of timer by 10.
When the timer the peeks the noted user event it puts them back. After 10 times without user events the applcations will be locked.

It goes well and is not so complicate.

I get another problem with messageboxes. When a messagebox appears there are no window messages Frown | :( In addition I have to handle a opened messagebox.

At the moment I'm thinking about this problem.

Thanks

GeneralRe: to lock an application Pin
Idefix22-Jan-04 1:47
Idefix22-Jan-04 1:47 
QuestionCapture LButtonUp in a CListBox ?? Pin
jwd15-Jan-04 0:38
jwd15-Jan-04 0:38 
AnswerRe: Capture LButtonUp in a CListBox ?? Pin
Vladimir Georgiev15-Jan-04 0:51
Vladimir Georgiev15-Jan-04 0:51 
GeneralRe: Capture LButtonUp in a CListBox ?? Pin
Diddy15-Jan-04 5:54
Diddy15-Jan-04 5:54 
Generalthe problem of mscomm32.ocx and vc++ Pin
anders_zhou15-Jan-04 0:26
anders_zhou15-Jan-04 0:26 
Generalload bitmap to dialog Pin
Member 64882815-Jan-04 0:17
Member 64882815-Jan-04 0:17 
GeneralIHTMLWindow4 Pin
Monty215-Jan-04 0:07
Monty215-Jan-04 0:07 
GeneralRe: IHTMLWindow4 Pin
Prakash Nadar15-Jan-04 1:16
Prakash Nadar15-Jan-04 1:16 
GeneralResolving NetBIOS name for IP address Pin
---Ranger---14-Jan-04 23:53
---Ranger---14-Jan-04 23:53 
GeneralRe: Resolving NetBIOS name for IP address Pin
Alexander M.,15-Jan-04 5:27
Alexander M.,15-Jan-04 5:27 
GeneralRe: Resolving NetBIOS name for IP address Pin
---Ranger---15-Jan-04 17:45
---Ranger---15-Jan-04 17:45 
GeneralAVI buffers Pin
Member 52521914-Jan-04 23:23
Member 52521914-Jan-04 23:23 
GeneralRe: AVI buffers Pin
Abhishek Srivastava14-Jan-04 23:38
Abhishek Srivastava14-Jan-04 23:38 
GeneralRe: AVI buffers Pin
Member 52521915-Jan-04 1:00
Member 52521915-Jan-04 1:00 
GeneralLarge Text Display in a Dialog Pin
Dov Sherman14-Jan-04 22:56
Dov Sherman14-Jan-04 22:56 
GeneralRe: Large Text Display in a Dialog Pin
jhwurmbach14-Jan-04 23:11
jhwurmbach14-Jan-04 23:11 
GeneralLoading Bitmap Image Pin
sweep12314-Jan-04 22:45
sweep12314-Jan-04 22:45 

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.