Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Jihad! GetBuffer/ReleaseBuffer considered Evil Pin
Jim Howard22-Jan-01 8:46
Jim Howard22-Jan-01 8:46 
GeneralRe: Jihad! GetBuffer/ReleaseBuffer considered Evil Pin
Erik Funkenbusch22-Jan-01 13:39
Erik Funkenbusch22-Jan-01 13:39 
GeneralRe: Jihad! GetBuffer/ReleaseBuffer considered Evil Pin
Sven Axelsson25-Jan-01 3:23
Sven Axelsson25-Jan-01 3:23 
GeneralRe: Jihad! GetBuffer/ReleaseBuffer considered Evil Pin
Erik Funkenbusch25-Jan-01 11:55
Erik Funkenbusch25-Jan-01 11:55 
QuestionHow to remove Console App's button from Taskbar? Pin
16-Jan-01 14:24
suss16-Jan-01 14:24 
QuestionWhy does New Class dialog not allow custom classes? Pin
16-Jan-01 14:18
suss16-Jan-01 14:18 
AnswerRe: Why does New Class dialog not allow custom classes? Pin
Christian Graus16-Jan-01 16:22
protectorChristian Graus16-Jan-01 16:22 
GeneralResizeing View programatically... Pin
16-Jan-01 8:45
suss16-Jan-01 8:45 
The following line will force to not have the default opened initial view on app statrtup, and it is OK.

<br />
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;<br />


But I need to size the view according to selection from the user from a dialog as follows:

BOOL CSizeView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	CSizeDlg sizedlg;
	
	int result = sizedlg.DoModal();
	
	if(result == IDOK){

	cs.cx &= sizedlg.m_Height;
	cs.cy &= sizedlg.m_Width;
		
	MoveWindow(0, 0, cs.cy, cs.cx);
		

	}

	return CView::PreCreateWindow(cs);

}


But the above does not work! Frown | :(

How can I fix it! Helps are apprecaietd! Big Grin | :-D
GeneralRe: Resizeing View programatically... Pin
Christian Graus16-Jan-01 9:12
protectorChristian Graus16-Jan-01 9:12 
GeneralRe: Resizeing View programatically... Pin
16-Jan-01 10:44
suss16-Jan-01 10:44 
GeneralRe: Resizeing View programatically... Pin
Christian Graus16-Jan-01 11:37
protectorChristian Graus16-Jan-01 11:37 
GeneralRe: Resizeing View programatically... Pin
16-Jan-01 12:09
suss16-Jan-01 12:09 
GeneralRe: Resizeing View programatically... Pin
Christian Graus16-Jan-01 18:21
protectorChristian Graus16-Jan-01 18:21 
GeneralRe: Resizeing View programatically... Pin
16-Jan-01 23:37
suss16-Jan-01 23:37 
GeneralCPropertyPage in Wizard Mode does not call OnKillActive() Pin
16-Jan-01 5:30
suss16-Jan-01 5:30 
GeneralRe: CPropertyPage in Wizard Mode does not call OnKillActive() Pin
16-Jan-01 18:02
suss16-Jan-01 18:02 
GeneralRe: CPropertyPage in Wizard Mode does not call OnKillActive() Pin
16-Jan-01 22:20
suss16-Jan-01 22:20 
GeneralMenu handle Pin
subir talukder16-Jan-01 4:13
subir talukder16-Jan-01 4:13 
GeneralRe: Menu handle Pin
Michael Dunn16-Jan-01 8:35
sitebuilderMichael Dunn16-Jan-01 8:35 
GeneralRemove caption from toolbar Pin
Christian Graus15-Jan-01 12:42
protectorChristian Graus15-Jan-01 12:42 
GeneralRe: Remove caption from toolbar Pin
17-Jan-01 23:09
suss17-Jan-01 23:09 
GeneralRemove caption from toolbar Pin
Christian Graus15-Jan-01 12:42
protectorChristian Graus15-Jan-01 12:42 
GeneralRe: Remove caption from toolbar Pin
Masoud Samimi21-Jan-01 12:05
Masoud Samimi21-Jan-01 12:05 
GeneralRe: Remove caption from toolbar Pin
Christian Graus21-Jan-01 12:16
protectorChristian Graus21-Jan-01 12:16 
GeneralRe: Remove caption from toolbar Pin
Masoud Samimi21-Jan-01 23:15
Masoud Samimi21-Jan-01 23:15 

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.