Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Bug in CMonthCalCtrl class ?? Pin
Qadddd5-Jan-04 1:55
Qadddd5-Jan-04 1:55 
Generaluse dll in another dll Pin
johnsmith3-Jan-04 19:46
johnsmith3-Jan-04 19:46 
GeneralRe: use dll in another dll Pin
Prakash Nadar3-Jan-04 19:51
Prakash Nadar3-Jan-04 19:51 
GeneralRe: use dll in another dll Pin
Wolfram Steinke3-Jan-04 22:52
Wolfram Steinke3-Jan-04 22:52 
GeneralRe: use dll in another dll Pin
johnsmith6-Jan-04 14:12
johnsmith6-Jan-04 14:12 
GeneralSplitter window. Pin
Prakash Nadar3-Jan-04 19:28
Prakash Nadar3-Jan-04 19:28 
GeneralRe: Splitter window. Pin
abc8763-Jan-04 23:44
abc8763-Jan-04 23:44 
GeneralMy application is not receiving focus! Pin
Houdini3-Jan-04 16:54
Houdini3-Jan-04 16:54 
My program needs to popup a dialog whenever the user prints to a particular printer. I have the printer driver setup to notify my application when it's being printed to, at which point I display the modal dialog. However, the the problem is the modal dialog is displayed BEHIND the application that is printing.

I tried using the obvious SetForegroundWindow function in the OnInitDialog function, and it then properly displays my dialog on top of all other windows, but only for the first time printing! After that all subsequent prints display my dialog behind the application printing again.

I also tried using SetWindowPos, SetFocus, ShowWindow, BringWindowToTop, and SetActiveWindow but nothing works.

Any ideas???


Rob Geiman
GeneralRe: My application is not receiving focus! Pin
valikac3-Jan-04 17:01
valikac3-Jan-04 17:01 
GeneralRe: My application is not receiving focus! Pin
Houdini3-Jan-04 17:44
Houdini3-Jan-04 17:44 
GeneralRe: My application is not receiving focus! Pin
valikac4-Jan-04 6:35
valikac4-Jan-04 6:35 
GeneralRe: My application is not receiving focus! Pin
Houdini4-Jan-04 11:08
Houdini4-Jan-04 11:08 
GeneralRe: My application is not receiving focus! Pin
Houdini4-Jan-04 15:38
Houdini4-Jan-04 15:38 
GeneralSingle instance of dialog based application Pin
Steve Messer3-Jan-04 16:11
Steve Messer3-Jan-04 16:11 
GeneralRe: Single instance of dialog based application Pin
valikac3-Jan-04 17:06
valikac3-Jan-04 17:06 
GeneralRe: Single instance of dialog based application Pin
David Crow3-Jan-04 17:10
David Crow3-Jan-04 17:10 
GeneralRe: Single instance of dialog based application Pin
Steve Messer3-Jan-04 17:24
Steve Messer3-Jan-04 17:24 
Generalcount od GDI objects Pin
Raghunandan S3-Jan-04 16:08
Raghunandan S3-Jan-04 16:08 
GeneralRe: count od GDI objects [modified] Pin
Marek Grzenkowicz3-Jan-04 21:04
Marek Grzenkowicz3-Jan-04 21:04 
GeneralRe: count od GDI objects Pin
Raghunandan S3-Jan-04 21:30
Raghunandan S3-Jan-04 21:30 
GeneralRe: count od GDI objects [modified] Pin
Marek Grzenkowicz3-Jan-04 21:51
Marek Grzenkowicz3-Jan-04 21:51 
Generalbar code in C++ Pin
peplopy3-Jan-04 16:06
peplopy3-Jan-04 16:06 
GeneralRe: bar code in C++ Pin
PJ Arends3-Jan-04 16:19
professionalPJ Arends3-Jan-04 16:19 
GeneralWin32 to MFC header file problem Pin
jdgonko3-Jan-04 14:57
jdgonko3-Jan-04 14:57 
GeneralRe: Win32 to MFC header file problem Pin
Michael Dunn3-Jan-04 16:43
sitebuilderMichael Dunn3-Jan-04 16:43 

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.