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

C / C++ / MFC

 
GeneralRe: Can I serialize COleDateTime object? Pin
Nibu babu thomas9-May-06 22:16
Nibu babu thomas9-May-06 22:16 
GeneralRe: Can I serialize COleDateTime object? Pin
NoName II9-May-06 22:50
NoName II9-May-06 22:50 
GeneralRe: Can I serialize COleDateTime object? Pin
NoName II9-May-06 22:51
NoName II9-May-06 22:51 
AnswerRe: Can I serialize COleDateTime object? Pin
NoName II9-May-06 22:52
NoName II9-May-06 22:52 
GeneralRe: Can I serialize COleDateTime object? Pin
Cedric Moonen9-May-06 23:14
Cedric Moonen9-May-06 23:14 
Questioncreate a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master9-May-06 21:10
zeus_master9-May-06 21:10 
AnswerRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Nibu babu thomas9-May-06 21:17
Nibu babu thomas9-May-06 21:17 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master9-May-06 22:39
zeus_master9-May-06 22:39 
thank you for your kindness.

I'm afraid I don't know the way of "Store these buttons inside a CTypedPtrMap or CTypedPtrList based on your requirements. Map requires key value pairs. For key you can use the Id of the button."
would you show me the simple code?

and another base-question is dynamically creating button:
I wrote the (a) and (b) in function OnInitDialog()
(a)
CButton btn;
btn.Create("Hi,World",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,CRect(10,20,80,40),this,104);
(b)
CButton *btn = new CButton;
btn->Create("Hi,World",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,CRect(10,20,80,40),this,104);

it seems that the (a) can't work, but (b) is ok.
is there any different using pointer or not?




GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen9-May-06 22:46
Cedric Moonen9-May-06 22:46 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master9-May-06 23:17
zeus_master9-May-06 23:17 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen9-May-06 23:44
Cedric Moonen9-May-06 23:44 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master10-May-06 20:38
zeus_master10-May-06 20:38 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen10-May-06 20:42
Cedric Moonen10-May-06 20:42 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen10-May-06 20:48
Cedric Moonen10-May-06 20:48 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master10-May-06 21:15
zeus_master10-May-06 21:15 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen10-May-06 21:24
Cedric Moonen10-May-06 21:24 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master10-May-06 21:38
zeus_master10-May-06 21:38 
GeneralRe: create a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen10-May-06 21:51
Cedric Moonen10-May-06 21:51 
AnswerRe: creat a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
Cedric Moonen9-May-06 21:17
Cedric Moonen9-May-06 21:17 
GeneralRe: creat a batch of button in code, and the BN_CLICKED messages map to one function onButtonClick()? Pin
zeus_master9-May-06 23:36
zeus_master9-May-06 23:36 
Questionhelp Pin
subikchya9-May-06 21:09
subikchya9-May-06 21:09 
AnswerRe: help Pin
VinayCool9-May-06 21:28
VinayCool9-May-06 21:28 
AnswerRe: help Pin
Hamid_RT9-May-06 21:37
Hamid_RT9-May-06 21:37 
GeneralRe: help Pin
subikchya19-May-06 6:43
subikchya19-May-06 6:43 
GeneralRe: help Pin
Hamid_RT19-May-06 19:04
Hamid_RT19-May-06 19:04 

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.