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

C / C++ / MFC

 
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 
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 
Yes, it doesn't work because of:
BOOL CFrameWnd::PreCreateWindow(CREATESTRUCT& cs)
{
	if (cs.lpszClass == NULL)
	{
		VERIFY(AfxDeferRegisterClass(AFX_WNDFRAMEORVIEW_REG));
		cs.lpszClass = _afxWndFrameOrView;  // COLOR_WINDOW background
	}

	if ((cs.style & FWS_ADDTOTITLE) && afxData.bWin4)
		cs.style |= FWS_PREFIXTITLE;

	if (afxData.bWin4)
		cs.dwExStyle |= WS_EX_CLIENTEDGE;

	return TRUE;
}


Try to do that in OnCreate(), using ModifyStyle().

Paolo

------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
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 
GeneralRe: Shell API Pin
vijayaramaraju29-Sep-01 1:48
vijayaramaraju29-Sep-01 1:48 
GeneralRe: Shell API Pin
vijayaramaraju29-Sep-01 1:48
vijayaramaraju29-Sep-01 1:48 
GeneralInternet Post Questions Pin
Winston,Dang28-Sep-01 23:45
Winston,Dang28-Sep-01 23:45 
GeneralRe: Internet Post Questions Pin
Anders Molin29-Sep-01 1:05
professionalAnders Molin29-Sep-01 1:05 
GeneralCDialog::OnInitDialog () Assertion Error Pin
28-Sep-01 23:13
suss28-Sep-01 23:13 

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.