Click here to Skip to main content
15,891,864 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMode Function Pin
EvilSource29-Sep-01 9:02
EvilSource29-Sep-01 9:02 
GeneralRe: Mode Function Pin
Paolo Messina30-Sep-01 4:06
professionalPaolo Messina30-Sep-01 4:06 
GeneralMath function Pin
29-Sep-01 8:38
suss29-Sep-01 8:38 
GeneralRe: Math function Pin
Paolo Messina30-Sep-01 4:04
professionalPaolo Messina30-Sep-01 4:04 
GeneralDWebBrowserEvents2 Pin
29-Sep-01 4:33
suss29-Sep-01 4:33 
GeneralChanging windows cursors programatically Pin
Erik Hammar29-Sep-01 3:27
Erik Hammar29-Sep-01 3:27 
GeneralRe: Changing windows cursors programatically Pin
29-Sep-01 4:02
suss29-Sep-01 4:02 
GeneralCFormView window Border Pin
Giles29-Sep-01 0:45
Giles29-Sep-01 0:45 
Hello,

Does anyone one know what should be set in the PreCreateWindow function to remove the frame border from the CChildFrame window and\or the CFormView derived class?

I want to have something that looks more like a VB Form / Dialog window in that I would prefer a rasied 3d edge rather than the frame.

I think you have to do something with the cs.style, but cannot seem to get it right.

I thought something like :


BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
	cs.style &= ~WS_THICKFRAME;

	if( !CMDIChildWnd::PreCreateWindow(cs) )
		return FALSE;

	return TRUE;
}


Any suggestions would be welcome.

Thanks.

Giles
GeneralRe: CFormView window Border Pin
Paolo Messina29-Sep-01 2:37
professionalPaolo Messina29-Sep-01 2:37 
GeneralRe: CFormView window Border Pin
Giles29-Sep-01 2:59
Giles29-Sep-01 2:59 
GeneralRe: CFormView window Border Pin
Paolo Messina29-Sep-01 3:05
professionalPaolo Messina29-Sep-01 3:05 
GeneralRe: CFormView window Border Pin
Giles29-Sep-01 3:13
Giles29-Sep-01 3:13 
GeneralRe: CFormView window Border Pin
Paolo Messina29-Sep-01 3:58
professionalPaolo Messina29-Sep-01 3:58 
GeneralRe: CFormView window Border Pin
Giles29-Sep-01 4:38
Giles29-Sep-01 4:38 
GeneralRe: CFormView window Border Pin
Paolo Messina29-Sep-01 4:46
professionalPaolo Messina29-Sep-01 4:46 
GeneralRe: correction Pin
Paolo Messina29-Sep-01 4:54
professionalPaolo Messina29-Sep-01 4:54 
GeneralRe: correction Pin
Giles29-Sep-01 5:08
Giles29-Sep-01 5:08 
GeneralRe: not really Pin
Paolo Messina29-Sep-01 5:39
professionalPaolo Messina29-Sep-01 5:39 
GeneralRe: not really Pin
Nish Nishant6-Mar-02 9:11
sitebuilderNish Nishant6-Mar-02 9:11 
GeneralRe: not really Pin
Paolo Messina6-Mar-02 9:36
professionalPaolo Messina6-Mar-02 9:36 
GeneralRe: not really Pin
Nish Nishant6-Mar-02 9:43
sitebuilderNish Nishant6-Mar-02 9:43 
Generalwinsock server accepting multiple clients, sending data back to all clients Pin
Kuniva29-Sep-01 0:25
Kuniva29-Sep-01 0:25 
GeneralRe: winsock server accepting multiple clients, sending data back to all clients Pin
29-Sep-01 2:44
suss29-Sep-01 2:44 
GeneralShell API Pin
vijayaramaraju28-Sep-01 23:47
vijayaramaraju28-Sep-01 23:47 
GeneralRe: Shell API Pin
Paolo Messina29-Sep-01 0:17
professionalPaolo Messina29-Sep-01 0:17 

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.