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

C / C++ / MFC

 
QuestionHow correctly Deactivate IPictureDisp* based control ? Pin
vgrigor11-Sep-03 0:40
vgrigor11-Sep-03 0:40 
GeneralRGB <--> YUV Pin
Pawel Olszewski11-Sep-03 0:29
Pawel Olszewski11-Sep-03 0:29 
GeneralRe: RGB &lt;--&gt; YUV Pin
selfk11-Sep-03 1:27
selfk11-Sep-03 1:27 
GeneralRe: RGB &lt;--&gt; YUV Pin
Pawel Olszewski11-Sep-03 2:28
Pawel Olszewski11-Sep-03 2:28 
GeneralQues related to snmp Pin
SatyaDY11-Sep-03 0:19
SatyaDY11-Sep-03 0:19 
QuestionHow to put an icon in .ico file on a toolbar button? Pin
gumber11-Sep-03 0:05
gumber11-Sep-03 0:05 
AnswerRe: How to put an icon in .ico file on a toolbar button? Pin
Dominik Reichl11-Sep-03 0:19
Dominik Reichl11-Sep-03 0:19 
GeneralNo activation of window Pin
Bjarne Jørgensen11-Sep-03 0:03
Bjarne Jørgensen11-Sep-03 0:03 
I have used some of the ideas from Nishant S's article "Some handy dialog box tricks, tips and workarounds" sections "How to steal focus on 2K/XP" and "Making your dialog stay on top"

What: I want a dialog to be shown for a number of seconds, "stealing" mouse input (using ClipCursor) and thereafter releasing. This is working now, but my problem is that the previous foreground window is not activated by windows (Using W2K).

A solution could be to save the current foreground pointer and after releasing the mouse, then use the pointer

m_pPrevious->SetForegroundWindow();

This works (most of the time) but the help for GetForegroundWindow() warns that it is a temp pointer. And in speciel cases that has shown to be true.


How do I ensure re-activation of the previous "foreground window"??
GeneralRe: No activation of window Pin
Dominik Reichl11-Sep-03 0:23
Dominik Reichl11-Sep-03 0:23 
GeneralRe: No activation of window Pin
Bjarne Jørgensen11-Sep-03 0:59
Bjarne Jørgensen11-Sep-03 0:59 
GeneralLibraries Pin
Zizilamoroso10-Sep-03 23:42
Zizilamoroso10-Sep-03 23:42 
GeneralRe: Libraries Pin
jhwurmbach10-Sep-03 23:52
jhwurmbach10-Sep-03 23:52 
GeneralRe: Libraries Pin
Zizilamoroso11-Sep-03 0:13
Zizilamoroso11-Sep-03 0:13 
GeneralRe: Libraries Pin
jhwurmbach11-Sep-03 1:16
jhwurmbach11-Sep-03 1:16 
GeneralRe: Libraries Pin
Zizilamoroso11-Sep-03 2:08
Zizilamoroso11-Sep-03 2:08 
GeneralRe: Libraries Pin
jhwurmbach11-Sep-03 2:10
jhwurmbach11-Sep-03 2:10 
GeneralDialog Help Pin
10-Sep-03 23:23
suss10-Sep-03 23:23 
GeneralRe: Dialog Help Pin
Iain Clarke, Warrior Programmer10-Sep-03 23:44
Iain Clarke, Warrior Programmer10-Sep-03 23:44 
GeneralSDI linkage with dialog Pin
coda_x10-Sep-03 23:21
coda_x10-Sep-03 23:21 
GeneralHorrid Memory Management Issue Pin
Dangleberry10-Sep-03 22:30
sussDangleberry10-Sep-03 22:30 
GeneralRe: Horrid Memory Management Issue Pin
Phil Speller10-Sep-03 23:20
Phil Speller10-Sep-03 23:20 
GeneralRe: Horrid Memory Management Issue Pin
Dangleberry10-Sep-03 23:59
sussDangleberry10-Sep-03 23:59 
GeneralRe: Horrid Memory Management Issue Pin
Phil Speller11-Sep-03 1:37
Phil Speller11-Sep-03 1:37 
GeneralRe: Horrid Memory Management Issue Pin
Dangleberry11-Sep-03 2:31
sussDangleberry11-Sep-03 2:31 
GeneralRe: Horrid Memory Management Issue Pin
Phil Speller10-Sep-03 23:50
Phil Speller10-Sep-03 23:50 

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.