Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: derived class, but want base class function Pin
ns7-Oct-02 3:48
ns7-Oct-02 3:48 
GeneralRe: derived class, but want base class function Pin
Daniel Lohmann7-Oct-02 3:49
Daniel Lohmann7-Oct-02 3:49 
GeneralBitmap Problem Pin
Renjith Ramachandran7-Oct-02 2:59
Renjith Ramachandran7-Oct-02 2:59 
GeneralRe: Bitmap Problem Pin
Renjith Ramachandran7-Oct-02 4:11
Renjith Ramachandran7-Oct-02 4:11 
GeneralRe: Bitmap Problem Pin
Renjith Ramachandran7-Oct-02 4:36
Renjith Ramachandran7-Oct-02 4:36 
QuestionHow to determine the last active windows from a tray icon notification handler Pin
Daniel Lohmann7-Oct-02 2:56
Daniel Lohmann7-Oct-02 2:56 
AnswerRe: How to determine the last active windows from a tray icon notification handler Pin
Andreas Saurwein7-Oct-02 6:38
Andreas Saurwein7-Oct-02 6:38 
GeneralRe: How to determine the last active windows from a tray icon notification handler Pin
Daniel Lohmann7-Oct-02 10:11
Daniel Lohmann7-Oct-02 10:11 
Thanks Andreas,

However, you should find a better design for your dialog solution.

I thought a lot about it, but I don't think that a really nice design for this problem even exists. The dialog is deactivated if somebody clicks the icon and there is no chance to examine if it was activated before.

I now found a solution which is similar to what you suggested. I catch WM_ACTIVATE in the dialog and remember the current system time if the dialog is deactivated. In the tray icons handler I check the dialog was deactivated immediately before the handler was executed (less than 200 ms). If this is the case, it was deactivated because of clicking on the icon.

Not the cleanest design, but works fairly well - even on high system load.

Thanks!

--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
GeneralRetrieve Disk volume from a targetId of a scsi device Pin
Chrish1207-Oct-02 2:50
Chrish1207-Oct-02 2:50 
GeneralRe: Retrieve Disk volume from a targetId of a scsi device Pin
Mike Nordell8-Oct-02 4:56
Mike Nordell8-Oct-02 4:56 
GeneralRe: Retrieve Disk volume from a targetId of a scsi device Pin
Chrish12015-Oct-02 6:37
Chrish12015-Oct-02 6:37 
GeneralGetting the MSDOS name in the Application Pin
abhinarulkar7-Oct-02 2:53
abhinarulkar7-Oct-02 2:53 
GeneralRe: Getting the MSDOS name in the Application Pin
Daniel Lohmann7-Oct-02 4:43
Daniel Lohmann7-Oct-02 4:43 
GeneralCSplitterWnd question Pin
alex.barylski7-Oct-02 2:49
alex.barylski7-Oct-02 2:49 
GeneralIncrediBuild software Pin
Cris7-Oct-02 2:42
Cris7-Oct-02 2:42 
GeneralRe: IncrediBuild software Pin
Victor Rubinstein10-Oct-02 11:44
Victor Rubinstein10-Oct-02 11:44 
GeneralHiding vertical scrollbar in CListCtrl Pin
mishgun7-Oct-02 0:38
mishgun7-Oct-02 0:38 
GeneralRe: Hiding vertical scrollbar in CListCtrl Pin
Jon Hulatt7-Oct-02 1:02
Jon Hulatt7-Oct-02 1:02 
GeneralRe: Hiding vertical scrollbar in CListCtrl Pin
mishgun7-Oct-02 1:49
mishgun7-Oct-02 1:49 
GeneralRe: Hiding vertical scrollbar in CListCtrl Pin
Yaron Nir21-Oct-02 5:06
Yaron Nir21-Oct-02 5:06 
QuestionHow to insert pictures into .mdb database? Pin
Wenrich7-Oct-02 0:06
Wenrich7-Oct-02 0:06 
Generaldouble value from ini file Pin
Raphael Kindt6-Oct-02 22:56
Raphael Kindt6-Oct-02 22:56 
GeneralRe: double value from ini file Pin
Raphael Kindt6-Oct-02 23:11
Raphael Kindt6-Oct-02 23:11 
GeneralRe: double value from ini file Pin
Anonymous6-Oct-02 23:11
Anonymous6-Oct-02 23:11 
GeneralCTreeCtrl insert subitem Pin
Anonymous6-Oct-02 21:37
Anonymous6-Oct-02 21:37 

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.