Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRedraw a control.. Pin
RobJones17-Oct-01 12:19
RobJones17-Oct-01 12:19 
GeneralRe: Redraw a control.. Pin
Fazlul Kabir17-Oct-01 12:27
Fazlul Kabir17-Oct-01 12:27 
GeneralRe: Redraw a control.. Pin
RobJones17-Oct-01 12:29
RobJones17-Oct-01 12:29 
GeneralModeless Dialog Inside a Frame Pin
Mark Lenz17-Oct-01 10:43
Mark Lenz17-Oct-01 10:43 
GeneralRe: Modeless Dialog Inside a Frame Pin
RobJones17-Oct-01 11:41
RobJones17-Oct-01 11:41 
GeneralRe: Modeless Dialog Inside a Frame Pin
Mark Lenz18-Oct-01 3:16
Mark Lenz18-Oct-01 3:16 
GeneralRe: Modeless Dialog Inside a Frame Pin
RobJones18-Oct-01 4:32
RobJones18-Oct-01 4:32 
GeneralDialog Box Pin
syedhassan417-Oct-01 10:33
syedhassan417-Oct-01 10:33 
In Dialog base(MFC) application.
I Create second Dialog (I have Seperate Class for that Dialog) OnInitDialog() through Create(IDD_DLG, this);
So It becomes Modless Dialog.
Problem is that when Second Dialog(Child) when Display it is above of First Dialog(Parent).(as it should be b/c it is Current Focus)
I need when First Dialog(Parent) is Clicked(Focused) it becomes above of Second Dialog (Child).
and when Second Dialog (Child) is Clicked(Focused) it becomes above of First Dialog(Parent).

I try to use SetWindowPos(). But did not work. Like following
SetWindowPos(&CWnd::wndTopMost, 0, 0, 0, 0, SWP_NOSIZE|SWP_NOMOVE);
::SetWindowPos(AfxGetApp()->GetMainWnd()->m_hWnd, HWND_TOPMOST, 0, 0, 0,0, SWP_NOMOVE | SWP_NOSIZE);

I also need to know which event occure when any Dialog get Focus (active). Even Clicked on the System Menu.
WM_PAINT
WM_SETFOCUS
GetFocus
I check all all these messages. They are not Confused | :confused:

Some code will be helped alot . . .

Thanks in advance.
Confused | :confused: Confused | :confused: Confused | :confused:
GeneralRe: Dialog Box Pin
Christian Graus17-Oct-01 11:18
protectorChristian Graus17-Oct-01 11:18 
GeneralRe: Dialog Box Pin
syedhassan417-Oct-01 21:20
syedhassan417-Oct-01 21:20 
GeneralRe: Dialog Box Pin
Christian Graus17-Oct-01 21:27
protectorChristian Graus17-Oct-01 21:27 
GeneralRe: Dialog Box Pin
syedhassan418-Oct-01 0:50
syedhassan418-Oct-01 0:50 
GeneralRe: Dialog Box Pin
Christian Graus18-Oct-01 1:29
protectorChristian Graus18-Oct-01 1:29 
GeneralRe: Dialog Box Pin
syedhassan418-Oct-01 2:37
syedhassan418-Oct-01 2:37 
GeneralRe: Dialog Box Pin
Christian Graus18-Oct-01 2:40
protectorChristian Graus18-Oct-01 2:40 
GeneralRe: Dialog Box Pin
syedhassan418-Oct-01 2:57
syedhassan418-Oct-01 2:57 
QuestionHow to know that a dialog is completely charged Pin
17-Oct-01 10:31
suss17-Oct-01 10:31 
AnswerRe: How to know that a dialog is completely charged Pin
syedhassan417-Oct-01 10:44
syedhassan417-Oct-01 10:44 
GeneralRe: How to know that a dialog is completely charged Pin
17-Oct-01 10:59
suss17-Oct-01 10:59 
GeneralRe: How to know that a dialog is completely charged Pin
Michael P Butler17-Oct-01 11:08
Michael P Butler17-Oct-01 11:08 
GeneralRe: How to know that a dialog is completely charged Pin
Joaquín M López Muñoz17-Oct-01 11:22
Joaquín M López Muñoz17-Oct-01 11:22 
GeneralSMTP Error Code Pin
Özgür17-Oct-01 9:40
Özgür17-Oct-01 9:40 
GeneralRe: SMTP Error Code Pin
Ravi Bhavnani17-Oct-01 10:18
professionalRavi Bhavnani17-Oct-01 10:18 
GeneralRe: SMTP Error Code Pin
markkuk17-Oct-01 19:57
markkuk17-Oct-01 19:57 
GeneralUh oh... Pin
Ravi Bhavnani18-Oct-01 2:55
professionalRavi Bhavnani18-Oct-01 2:55 

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.