Click here to Skip to main content
16,003,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ceil and floor? Pin
Chris Losinger27-Feb-03 11:24
professionalChris Losinger27-Feb-03 11:24 
AnswerRe: ceil and floor? Pin
Gary Kirkham27-Feb-03 11:24
Gary Kirkham27-Feb-03 11:24 
GeneralRe: ceil and floor? Pin
Gary Kirkham27-Feb-03 11:27
Gary Kirkham27-Feb-03 11:27 
GeneralRe: ceil and floor? Pin
Jörgen Sigvardsson2-Mar-03 13:30
Jörgen Sigvardsson2-Mar-03 13:30 
Generalstdafx.h question Pin
Anonymous27-Feb-03 11:09
Anonymous27-Feb-03 11:09 
GeneralRe: stdafx.h question Pin
Jim A. Johnson27-Feb-03 11:13
Jim A. Johnson27-Feb-03 11:13 
GeneralRe: stdafx.h question Pin
Anonymous27-Feb-03 11:16
Anonymous27-Feb-03 11:16 
GeneralI feel inadequate ... CButton question. Pin
Maximilien27-Feb-03 10:15
Maximilien27-Feb-03 10:15 
I fell so dumb and inadequate today ... yesterday was such a good day!

I have a CButton derived button in a dialog ( a dialog app ) :

// .h
#include "MyButton.h"
//{{AFX_DATA(CTestColorControlDlg)
 CMyButton m_HelpButton;
//}}AFX_DATA
and
// .cpp 
...
void CTestColorControlDlg::DoDataExchange(CDataExchange* pDX)
{
 CDialog::DoDataExchange(pDX);
 //{{AFX_DATA_MAP(CTestColorControlDlg)
 DDX_Control(pDX, IDC_HELP_BUTTON, m_HelpButton);
 //}}AFX_DATA_MAP
}
...


My button is working nicelly, but I don't receive and message for WM_CREATE, or even the OnCreate virtual is not called.

I need to change the button size, from inside the class, at creation time; I don't want to have to manually create the button in the dialog's OnInitDialog just to do it.

Thank yo for helping a programmer in need!



Maximilien Lincourt
For success one must aquire one's self
GeneralRe: I feel inadequate ... CButton question. Pin
Dave Bryant27-Feb-03 10:20
Dave Bryant27-Feb-03 10:20 
GeneralRe: I feel inadequate ... CButton question. Pin
PJ Arends27-Feb-03 10:21
professionalPJ Arends27-Feb-03 10:21 
GeneralRe: I feel inadequate ... CButton question. Pin
Maximilien27-Feb-03 10:24
Maximilien27-Feb-03 10:24 
GeneralRe: I feel inadequate ... CButton question. Pin
PJ Arends27-Feb-03 10:35
professionalPJ Arends27-Feb-03 10:35 
GeneralRe: I feel inadequate ... CButton question. Pin
palbano27-Feb-03 10:33
palbano27-Feb-03 10:33 
QuestionGet desktop folder of all users in computer and their username ? Pin
Wizard_0127-Feb-03 10:10
Wizard_0127-Feb-03 10:10 
AnswerRe: Get desktop folder of all users in computer and their username ? Pin
Mazdak27-Feb-03 10:15
Mazdak27-Feb-03 10:15 
AnswerRe: Get desktop folder of all users in computer and their username ? Pin
TigerNinja_28-Feb-03 4:28
TigerNinja_28-Feb-03 4:28 
GeneralUsing SHGetFolderPath Pin
TigerNinja_27-Feb-03 9:47
TigerNinja_27-Feb-03 9:47 
GeneralRe: Using SHGetFolderPath Pin
Alvaro Mendez27-Feb-03 10:07
Alvaro Mendez27-Feb-03 10:07 
GeneralRe: Using SHGetFolderPath Pin
palbano27-Feb-03 10:22
palbano27-Feb-03 10:22 
GeneralRe: Using SHGetFolderPath Pin
PJ Arends27-Feb-03 10:33
professionalPJ Arends27-Feb-03 10:33 
GeneralRe: Using SHGetFolderPath Pin
TigerNinja_28-Feb-03 4:25
TigerNinja_28-Feb-03 4:25 
GeneralRe: Using SHGetFolderPath Pin
PJ Arends28-Feb-03 6:13
professionalPJ Arends28-Feb-03 6:13 
GeneralRe: Using SHGetFolderPath Pin
Gary R. Wheeler1-Mar-03 2:41
Gary R. Wheeler1-Mar-03 2:41 
Questionold fashioned memory access in a visual C++ console application? Pin
codedancer27-Feb-03 8:58
codedancer27-Feb-03 8:58 
AnswerRe: old fashioned memory access in a visual C++ console application? Pin
Erik Juhl27-Feb-03 9:22
Erik Juhl27-Feb-03 9:22 

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.