Click here to Skip to main content
15,920,632 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Database and MFC! HHHEEEELLLLPPPP! Pin
Marc Clifton22-Oct-02 12:17
mvaMarc Clifton22-Oct-02 12:17 
GeneralRe: Database and MFC! HHHEEEELLLLPPPP! Pin
MFC is the Best22-Oct-02 12:43
MFC is the Best22-Oct-02 12:43 
GeneralRe: Database and MFC! HHHEEEELLLLPPPP! Pin
Marc Clifton22-Oct-02 13:13
mvaMarc Clifton22-Oct-02 13:13 
GeneralRe: Database and MFC! HHHEEEELLLLPPPP! Pin
Alexandru Savescu22-Oct-02 20:53
Alexandru Savescu22-Oct-02 20:53 
Questionedit box- change colors? Pin
jimNLX22-Oct-02 11:51
jimNLX22-Oct-02 11:51 
AnswerRe: edit box- change colors? Pin
Joaquín M López Muñoz22-Oct-02 11:54
Joaquín M López Muñoz22-Oct-02 11:54 
AnswerRe: edit box- change colors? Pin
adamUK22-Oct-02 21:45
adamUK22-Oct-02 21:45 
GeneralAssertion Failure Pin
monrobot1322-Oct-02 11:46
monrobot1322-Oct-02 11:46 
I get and assertion when I run this code, is the reason it fails because the m_cTabMain control isn't created when the first OnSize message comes through?
void CToolTabsDlg::OnSize(UINT nType, int cx, int cy) 
{
	CDialog::OnSize(nType, cx, cy);
	
	int ncx = cx - ::GetSystemMetrics (SM_CXBORDER);
	int ncy = cy - ::GetSystemMetrics (SM_CYBORDER);

	m_cTabMain.SetWindowPos (NULL, 0, 0, ncx, ncy, SWP_NOMOVE | SWP_NOZORDER);
}
I put similar code in the OnPaint handler and it works perfectly. Is there anyway I can get the code to run in the OnSize handler? m_cTabMain is a CTabCtrl that I put on the dialog in the resource editor.

Thanks in advance.

- monrobot13
GeneralRe: Assertion Failure Pin
Chris Losinger22-Oct-02 11:49
professionalChris Losinger22-Oct-02 11:49 
GeneralRe: Assertion Failure Pin
Joaquín M López Muñoz22-Oct-02 11:50
Joaquín M López Muñoz22-Oct-02 11:50 
GeneralXML & STL Pin
Giles22-Oct-02 11:25
Giles22-Oct-02 11:25 
GeneralRe: XML & STL Pin
Christian Graus22-Oct-02 11:32
protectorChristian Graus22-Oct-02 11:32 
GeneralRe: XML & STL Pin
Giles22-Oct-02 11:41
Giles22-Oct-02 11:41 
GeneralRe: XML & STL Pin
Christian Graus22-Oct-02 12:01
protectorChristian Graus22-Oct-02 12:01 
GeneralRe: XML & STL Pin
Giles22-Oct-02 12:10
Giles22-Oct-02 12:10 
GeneralRe: XML & STL Pin
Christian Graus22-Oct-02 12:14
protectorChristian Graus22-Oct-02 12:14 
GeneralRe: XML & STL Pin
Giles22-Oct-02 12:18
Giles22-Oct-02 12:18 
Generalvector Pin
pnpfriend22-Oct-02 11:24
pnpfriend22-Oct-02 11:24 
GeneralRe: vector<int > Pin
Christian Graus22-Oct-02 11:28
protectorChristian Graus22-Oct-02 11:28 
GeneralRe: vector<int > Pin
pnpfriend22-Oct-02 11:52
pnpfriend22-Oct-02 11:52 
GeneralRe: vector<int > Pin
Christian Graus22-Oct-02 11:59
protectorChristian Graus22-Oct-02 11:59 
Generalvector<int > Pin
Anonymous22-Oct-02 11:19
Anonymous22-Oct-02 11:19 
GeneralRe: vector<int > Pin
Christian Graus22-Oct-02 11:25
protectorChristian Graus22-Oct-02 11:25 
QuestionHow to programmatically disable screen saver? Pin
Anonymous22-Oct-02 10:40
Anonymous22-Oct-02 10:40 
AnswerRe: How to programmatically disable screen saver? Pin
Diarrhio22-Oct-02 11:39
Diarrhio22-Oct-02 11:39 

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.