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

C / C++ / MFC

 
GeneralRe: XP Vertical-style Tabs Pin
Larry Antram3-Jul-02 14:05
Larry Antram3-Jul-02 14:05 
GeneralRe: XP Vertical-style Tabs Pin
Jeremy Falcon3-Jul-02 19:28
professionalJeremy Falcon3-Jul-02 19:28 
GeneralRe: XP Vertical-style Tabs Pin
Larry Antram3-Jul-02 22:01
Larry Antram3-Jul-02 22:01 
GeneralCOM Security problem Please Help Pin
Bill Wilson3-Jul-02 13:23
Bill Wilson3-Jul-02 13:23 
Generalhide MFC modal dialog on startup Pin
Kuniva3-Jul-02 13:05
Kuniva3-Jul-02 13:05 
GeneralRe: hide MFC modal dialog on startup Pin
Bill Wilson3-Jul-02 13:28
Bill Wilson3-Jul-02 13:28 
GeneralRe: hide MFC modal dialog on startup Pin
Nish Nishant3-Jul-02 14:45
sitebuilderNish Nishant3-Jul-02 14:45 
GeneralRe: hide MFC modal dialog on startup Pin
Mazdak3-Jul-02 19:53
Mazdak3-Jul-02 19:53 
This method is by Joaquin.

Add TRUE boolean to your class and named it m_bFirstShowWindow.Then handle this event to your dialog class:

void CYourDlg::OnWindowPosChanging(WINDOWPOS* lpwndpos)
{
	CDialog::OnWindowPosChanging(lpwndpos);

	if(lpwndpos->flags&SWP_SHOWWINDOW)
	{
		if(m_bFirstShowWindow)
		{
			m_bFirstShowWindow=FALSE;            
			lpwndpos->flags&=~SWP_SHOWWINDOW;        
		}
    }
}


Mazy

"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"
Kryptonite-3 Doors Down

General"enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:18
ns3-Jul-02 11:18 
GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:32
professionalChris Losinger3-Jul-02 11:32 
GeneralRe: "enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:40
ns3-Jul-02 11:40 
GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:43
professionalChris Losinger3-Jul-02 11:43 
GeneralRe: "enter" key dismisses modal dialog! Pin
ns3-Jul-02 11:49
ns3-Jul-02 11:49 
GeneralRe: "enter" key dismisses modal dialog! Pin
Chris Losinger3-Jul-02 11:57
professionalChris Losinger3-Jul-02 11:57 
GeneralA million thanks! Pin
ns3-Jul-02 12:00
ns3-Jul-02 12:00 
GeneralRe: "enter" key dismisses modal dialog! Pin
Christopher Lord3-Jul-02 15:17
Christopher Lord3-Jul-02 15:17 
GeneralRe: "enter" key dismisses modal dialog! Pin
Larry Antram3-Jul-02 16:25
Larry Antram3-Jul-02 16:25 
Generalgetting "System Name" and "User name" in windows xp.. Pin
Speedy3-Jul-02 10:38
Speedy3-Jul-02 10:38 
GeneralRe: getting "System Name" and "User name" in windows xp.. Pin
Jason Henderson3-Jul-02 18:05
Jason Henderson3-Jul-02 18:05 
GeneralVisual Studio .NET Installation Pin
Ryan B.3-Jul-02 9:01
Ryan B.3-Jul-02 9:01 
GeneralRe: Visual Studio .NET Installation Pin
Mazdak3-Jul-02 9:06
Mazdak3-Jul-02 9:06 
GeneralRe: Visual Studio .NET Installation Pin
Ranjan Banerji3-Jul-02 9:40
Ranjan Banerji3-Jul-02 9:40 
GeneralRe: Visual Studio .NET Installation Pin
Ryan B.3-Jul-02 9:55
Ryan B.3-Jul-02 9:55 
GeneralC++ questions Pin
3-Jul-02 6:56
suss3-Jul-02 6:56 
GeneralRe: C++ questions Pin
Hans Ruck3-Jul-02 7:47
Hans Ruck3-Jul-02 7:47 

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.