Click here to Skip to main content
15,917,652 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaledit box - with popup Pin
jimNLX4-Jun-02 3:36
jimNLX4-Jun-02 3:36 
GeneralRe: edit box - with popup Pin
Tomasz Sowinski4-Jun-02 3:44
Tomasz Sowinski4-Jun-02 3:44 
GeneralRe: edit box - with popup Pin
jimNLX4-Jun-02 4:37
jimNLX4-Jun-02 4:37 
GeneralRe: edit box - with popup Pin
dazinith4-Jun-02 5:42
dazinith4-Jun-02 5:42 
QuestionHow create a invisible modal dialog box ? Pin
Cris4-Jun-02 3:25
Cris4-Jun-02 3:25 
AnswerRe: How create a invisible modal dialog box ? Pin
Tomasz Sowinski4-Jun-02 3:40
Tomasz Sowinski4-Jun-02 3:40 
GeneralRe: How create a invisible modal dialog box ? Pin
Cris4-Jun-02 3:48
Cris4-Jun-02 3:48 
AnswerRe: How create a invisible modal dialog box ? Pin
Mazdak4-Jun-02 3:47
Mazdak4-Jun-02 3:47 
In the properties of dialog change the 'visible' property to false.Then add the bool variable to your class.Lets name it m_bFirstShowWindow and in constructor make it true.Then overriden OnWindowPosChanging and put this code in it:

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

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




Mazy

"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica

AnswerRe: How create a invisible modal dialog box ? Pin
Mazdak4-Jun-02 3:52
Mazdak4-Jun-02 3:52 
GeneralRe: How create a invisible modal dialog box ? Pin
Cris4-Jun-02 4:23
Cris4-Jun-02 4:23 
GeneralWndTabs Pin
4-Jun-02 2:31
suss4-Jun-02 2:31 
GeneralRe: WndTabs Pin
John M. Drescher4-Jun-02 6:28
John M. Drescher4-Jun-02 6:28 
GeneralUDP Sockets Pin
RaphaelBr4-Jun-02 2:30
RaphaelBr4-Jun-02 2:30 
GeneralRe: UDP Sockets Pin
Rickard Andersson204-Jun-02 3:37
Rickard Andersson204-Jun-02 3:37 
QuestionHelp! How do you do this?? Pin
mrAndy4-Jun-02 2:06
mrAndy4-Jun-02 2:06 
General__based Pin
jan larsen4-Jun-02 1:44
jan larsen4-Jun-02 1:44 
GeneralRe: __based Pin
Paul M Watt4-Jun-02 5:34
mentorPaul M Watt4-Jun-02 5:34 
GeneralRe: __based Pin
jan larsen4-Jun-02 22:08
jan larsen4-Jun-02 22:08 
GeneralDisable user breakpoints in ntdll Pin
ed welch4-Jun-02 1:41
ed welch4-Jun-02 1:41 
GeneralRe: Disable user breakpoints in ntdll Pin
Tomasz Sowinski4-Jun-02 3:56
Tomasz Sowinski4-Jun-02 3:56 
GeneralRe: Disable user breakpoints in ntdll Pin
John M. Drescher4-Jun-02 6:32
John M. Drescher4-Jun-02 6:32 
GeneralDisplaying 2 BMPs at the same position Pin
GUEJO4-Jun-02 1:26
GUEJO4-Jun-02 1:26 
GeneralRe: Displaying 2 BMPs at the same position Pin
Paul M Watt4-Jun-02 5:35
mentorPaul M Watt4-Jun-02 5:35 
GeneralRe: Displaying 2 BMPs at the same position Pin
GUEJO4-Jun-02 6:39
GUEJO4-Jun-02 6:39 
GeneralRe: Displaying 2 BMPs at the same position Pin
Paul M Watt4-Jun-02 8:33
mentorPaul M Watt4-Jun-02 8:33 

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.