Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Equality ( operator== ) Overload Pin
Steen Krogsgaard 210-Mar-05 7:43
Steen Krogsgaard 210-Mar-05 7:43 
GeneralRe: Equality ( operator== ) Overload Pin
karle10-Mar-05 7:50
karle10-Mar-05 7:50 
GeneralRe: Equality ( operator== ) Overload Pin
Jeryth14-Mar-05 5:21
Jeryth14-Mar-05 5:21 
Generalposition of text on tbbutton on toolbar Pin
tim63510-Mar-05 5:21
tim63510-Mar-05 5:21 
GeneralVC6 internal compiler error Pin
dandy7210-Mar-05 3:48
dandy7210-Mar-05 3:48 
GeneralRe: VC6 internal compiler error Pin
David Crow10-Mar-05 5:03
David Crow10-Mar-05 5:03 
GeneralRe: VC6 internal compiler error Pin
Mircea Puiu11-Mar-05 5:08
Mircea Puiu11-Mar-05 5:08 
GeneralXP UpdateWindow Problem Pin
gregcodeproject10-Mar-05 3:45
gregcodeproject10-Mar-05 3:45 
hello,
i have a problem i have been trying to solve for the last two weeks but i haven't even come close to finding a solution.Confused | :confused:

In my SDI app, i open a dialog through the document class by obtaining the view and opening the dialog:
<br />
POSITION pos = GetFirstViewPosition();<br />
G5GravFormVW * view = (G5GravFormVW *)GetNextView(pos);<br />
...<br />
m_gravureDlg.Create(view);<br />
m_gravureDlg.ShowWindow(SW_SHOW);<br />
m_gravureDlg.UpdateWindow();<br />


i then need to update the controls on this window through callback functions so i use:
<br />
if (AfxGetMainWnd()->GetForegroundWindow() != NULL)<br />
	AfxGetMainWnd()->GetForegroundWindow()->SetDlgItemText(1033, "Ajout du fichier: '" + CString(object->GetFileName()) + "'...");<br />
if (AfxGetMainWnd()->GetForegroundWindow() != NULL)<br />
	AfxGetMainWnd()->GetForegroundWindow()->UpdateWindow();<br />


It has been working fine for Windows 98, NT and 2000 but now with window XP, there's a problem: when i open another application (let's take for example Windows Explorer) on top of my app and then close or minimize the new app window to come back to my app's window, the window (dialog) i opened is not refreshed or redrawn anymore whereas it was before using Win XP. so it's impossible to follow the progress of my app!

i tried all the Window State and Update/Painting Functions, SetForegroundWindow (), Invalidate (), BeginModalState (), etc... but nothing is working.

thanks for ur help
Generalproblem with MessageBox Pin
doneirik10-Mar-05 3:14
doneirik10-Mar-05 3:14 
GeneralRe: problem with MessageBox Pin
David Crow10-Mar-05 3:17
David Crow10-Mar-05 3:17 
GeneralRe: problem with MessageBox Pin
doneirik10-Mar-05 3:33
doneirik10-Mar-05 3:33 
GeneralRe: problem with MessageBox Pin
Steen Krogsgaard10-Mar-05 4:16
Steen Krogsgaard10-Mar-05 4:16 
QuestionHow to get a pointers data type? Pin
Gadjuka10-Mar-05 2:44
Gadjuka10-Mar-05 2:44 
AnswerRe: How to get a pointers data type? Pin
Steen Krogsgaard10-Mar-05 3:43
Steen Krogsgaard10-Mar-05 3:43 
GeneralRe: How to get a pointers data type? Pin
Gadjuka10-Mar-05 5:13
Gadjuka10-Mar-05 5:13 
AnswerRe: How to get a pointers data type? Pin
PJ Arends10-Mar-05 16:54
professionalPJ Arends10-Mar-05 16:54 
GeneralRe: How to get a pointers data type? Pin
Gadjuka10-Mar-05 22:40
Gadjuka10-Mar-05 22:40 
GeneralRe: How to get a pointers data type? Pin
PJ Arends11-Mar-05 10:21
professionalPJ Arends11-Mar-05 10:21 
QuestionTemporary Internet Files ? Pin
Larsson10-Mar-05 2:42
Larsson10-Mar-05 2:42 
AnswerRe: Temporary Internet Files ? Pin
ThatsAlok10-Mar-05 2:51
ThatsAlok10-Mar-05 2:51 
GeneralRe: Temporary Internet Files ? Pin
Larsson10-Mar-05 2:58
Larsson10-Mar-05 2:58 
GeneralRe: Temporary Internet Files ? Pin
Larsson10-Mar-05 3:20
Larsson10-Mar-05 3:20 
GeneralRe: Temporary Internet Files ? Pin
David Crow10-Mar-05 5:00
David Crow10-Mar-05 5:00 
GeneralRe: Temporary Internet Files ? Pin
ThatsAlok10-Mar-05 19:26
ThatsAlok10-Mar-05 19:26 
GeneralRe: Temporary Internet Files ? Pin
Larsson11-Mar-05 23:04
Larsson11-Mar-05 23:04 

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.