Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unicode in VC Pin
Mazdak12-Nov-02 7:57
Mazdak12-Nov-02 7:57 
GeneralRe: Unicode in VC Pin
Hadi Rezaee12-Nov-02 10:31
Hadi Rezaee12-Nov-02 10:31 
GeneralRe: Unicode in VC Pin
Rickard Andersson2012-Nov-02 6:52
Rickard Andersson2012-Nov-02 6:52 
GeneralRe: Unicode in VC Pin
Mazdak12-Nov-02 7:59
Mazdak12-Nov-02 7:59 
GeneralRe: Unicode in VC Pin
Rickard Andersson2012-Nov-02 8:09
Rickard Andersson2012-Nov-02 8:09 
GeneralRe: Unicode in VC Pin
Mazdak12-Nov-02 8:32
Mazdak12-Nov-02 8:32 
GeneralRe: Unicode in VC Pin
Rickard Andersson2012-Nov-02 20:57
Rickard Andersson2012-Nov-02 20:57 
GeneralAuto hide dialog base app on startup. Pin
12-Nov-02 3:10
suss12-Nov-02 3:10 
Hello I need your expert help. I am trying to make my app to auto hide on start up. Here are part of the code..

CTestDlg.h
----------
I put this on the message map.
afx_msg void OnWindowPosChanging(WINDOWPOS* lpwndpos);


CTestDlg.cpp
------------
I put the following line in BEGIN_MESSAGE_MAP(CTestDlg, CDialog)
ON_WM_WINDOWPOSCHANGING()


And have the following function
void CTestDlg::OnWindowPosChanging (WINDOWPOS* lpwndpos)
{
    CDialog::OnWindowPosChanging(lpwndpos);

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


It compile without any error but when I run the program the dialog are still visible. Any ideas?

Thank you very much.
GeneralRe: Auto hide dialog base app on startup. Pin
567890123412-Nov-02 3:55
567890123412-Nov-02 3:55 
GeneralRe: Auto hide dialog base app on startup. Pin
Nitron12-Nov-02 4:08
Nitron12-Nov-02 4:08 
GeneralRe: Auto hide dialog base app on startup. Pin
Mazdak12-Nov-02 5:28
Mazdak12-Nov-02 5:28 
GeneralRe: Auto hide dialog base app on startup. Pin
Nitron12-Nov-02 8:11
Nitron12-Nov-02 8:11 
GeneralRe: Auto hide dialog base app on startup. Pin
Mazdak12-Nov-02 9:02
Mazdak12-Nov-02 9:02 
GeneralA simpler way Pin
Alvaro Mendez12-Nov-02 6:01
Alvaro Mendez12-Nov-02 6:01 
GeneralModify message map at run-time Pin
Hostalet Wandosell12-Nov-02 3:08
Hostalet Wandosell12-Nov-02 3:08 
GeneralRe: Modify message map at run-time Pin
Alvaro Mendez12-Nov-02 6:07
Alvaro Mendez12-Nov-02 6:07 
GeneralRe: Modify message map at run-time Pin
Hostalet Wandosell13-Nov-02 4:10
Hostalet Wandosell13-Nov-02 4:10 
GeneralRe: Modify message map at run-time Pin
ian mariano12-Nov-02 6:16
ian mariano12-Nov-02 6:16 
GeneralHelp with ClassWizard please! Pin
georgiek5012-Nov-02 2:47
georgiek5012-Nov-02 2:47 
GeneralRe: Help with ClassWizard please! Pin
567890123412-Nov-02 4:04
567890123412-Nov-02 4:04 
GeneralRe: Help with ClassWizard please! Pin
georgiek5012-Nov-02 5:56
georgiek5012-Nov-02 5:56 
GeneralFlicker and Cwnd Pin
Pyt12-Nov-02 1:58
Pyt12-Nov-02 1:58 
GeneralRe: Flicker and Cwnd Pin
Prem Kumar12-Nov-02 2:16
Prem Kumar12-Nov-02 2:16 
GeneralRe: Flicker and Cwnd Pin
KarstenK12-Nov-02 3:01
mveKarstenK12-Nov-02 3:01 
GeneralRe: Flicker and Cwnd Pin
Pyt12-Nov-02 3:16
Pyt12-Nov-02 3:16 

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.