Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Cant rebuild ClassView file Pin
bikram singh19-May-04 5:55
bikram singh19-May-04 5:55 
GeneralRe: Cant rebuild ClassView file Pin
*Dreamz20-May-04 19:28
*Dreamz20-May-04 19:28 
GeneralCustomDraw and ClistCtrl's SubItem Pin
amit_k_gupta19-May-04 4:41
amit_k_gupta19-May-04 4:41 
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
valikac19-May-04 5:07
valikac19-May-04 5:07 
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
amit_k_gupta19-May-04 20:42
amit_k_gupta19-May-04 20:42 
GeneralRe: CustomDraw and ClistCtrl's SubItem Pin
valikac20-May-04 5:13
valikac20-May-04 5:13 
GeneralDisplaying a short movie in same window over 3D display - need an advice Pin
robert_s19-May-04 3:50
robert_s19-May-04 3:50 
GeneralStatusbox and toolbar overwritten Pin
Wigwog19-May-04 2:42
Wigwog19-May-04 2:42 
In my MFC application the main window loads in direct x, but what im finding is that the status and toolboxes are overwritten by it i can resize the DX window to fit and not overwrite, by doing this i need to create a resize (OnSize) function to handle it, but when i actually do this the toolbar and status box do not show at all, what could be causing this?

Status Bar
m_StatusBar = new CStatusBar();<br />
m_StatusBar->Create(this);<br />
m_StatusBar->SetIndicators(idArr,2);<br />
m_StatusBar->SetPaneInfo(0,1,SBPS_NORMAL,200);<br />
m_StatusBar->SetPaneInfo(1,2,SBPS_NORMAL,100);<br />
m_StatusBar->SetPaneText(0,"Welcome To Map Edit");<br />
m_StatusBar->UpdateWindow();<br />


OnSize function
void CRootWin::OnSize(UINT nType, int cx, int cy)<br />
{<br />
	CWnd::OnSize(nType, cx, cy);<br />
    <br />
	RECT rectSize;<br />
	GetClientRect(&rectSize);<br />
<br />
    rectSize.top += 30;<br />
	m_RenderWin->MoveWindow(&rectSize, true);	<br />
}


Toolbar Setup
//Create the toolbars<br />
if(!m_DrawTools.Create(this)) <br />
{ <br />
    MessageBox("Creating Toolbar","Failed",MB_OK);<br />
}<br />
if(!m_DrawTools.LoadToolBar(IDR_MENU_POLYGON)) <br />
{ <br />
    MessageBox("Loading Toolbar","Failed",MB_OK);<br />
}

GeneralFilling the Clipboard using the CDC Pin
Cedar Sith19-May-04 2:36
Cedar Sith19-May-04 2:36 
GeneralRe: Filling the Clipboard using the CDC Pin
ohadp19-May-04 3:09
ohadp19-May-04 3:09 
GeneralRe: Filling the Clipboard using the CDC Pin
Cedar Sith19-May-04 4:02
Cedar Sith19-May-04 4:02 
GeneralRe: Filling the Clipboard using the CDC Pin
Maximilien19-May-04 4:36
Maximilien19-May-04 4:36 
GeneralRe: Filling the Clipboard using the CDC Pin
Cedar Sith19-May-04 5:07
Cedar Sith19-May-04 5:07 
GeneralRe: Filling the Clipboard using the CDC Pin
Maximilien19-May-04 5:23
Maximilien19-May-04 5:23 
GeneralRe: Filling the Clipboard using the CDC Pin
John R. Shaw19-May-04 12:46
John R. Shaw19-May-04 12:46 
GeneralGlobal Variables Pin
asv19-May-04 2:32
asv19-May-04 2:32 
GeneralRe: Global Variables Pin
valikac19-May-04 5:09
valikac19-May-04 5:09 
GeneralRe: Global Variables Pin
asv19-May-04 6:26
asv19-May-04 6:26 
GeneralRe: Global Variables Pin
Andrew Quinn AUS19-May-04 6:06
Andrew Quinn AUS19-May-04 6:06 
GeneralRe: Global Variables Pin
asv19-May-04 6:36
asv19-May-04 6:36 
GeneralRe: Global Variables Pin
Andrew Quinn AUS19-May-04 6:52
Andrew Quinn AUS19-May-04 6:52 
GeneralRe: Global Variables Pin
asv19-May-04 21:56
asv19-May-04 21:56 
GeneralOutput redirect Pin
no_reg_name19-May-04 2:16
no_reg_name19-May-04 2:16 
GeneralRe: Output redirect Pin
Roger Allen19-May-04 3:55
Roger Allen19-May-04 3:55 
GeneralNon Modal Dialogs Pin
pavneet19-May-04 1:45
pavneet19-May-04 1:45 

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.