Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to identify windows version at runtime Pin
mylovedsp26-Jan-04 17:30
mylovedsp26-Jan-04 17:30 
GeneralRe: How to identify windows version at runtime Pin
MyttO26-Jan-04 23:31
MyttO26-Jan-04 23:31 
QuestionHow to copy a file Pin
mr200326-Jan-04 6:08
mr200326-Jan-04 6:08 
AnswerRe: How to copy a file Pin
Mazdak26-Jan-04 6:21
Mazdak26-Jan-04 6:21 
General"Learning" network machines. Pin
ExtraLean26-Jan-04 5:54
ExtraLean26-Jan-04 5:54 
GeneralRe: "Learning" network machines. Pin
David Crow26-Jan-04 8:32
David Crow26-Jan-04 8:32 
GeneralRe: "Learning" network machines. Pin
ExtraLean26-Jan-04 8:49
ExtraLean26-Jan-04 8:49 
QuestionCDateTimeCtrl in ToolBar ? Pin
BrutalDeath026-Jan-04 5:49
sussBrutalDeath026-Jan-04 5:49 
Hi all,

I would like to know how to insert a CDateTimeCtrl (DateTimePicker) into my ToolBar.
I use this way :

BOOL CMyToolBar::CreateDTPicker(CDateTimeCtrl& dtPicker, UINT nIndex, UINT nID, int nWidth)
{
// Create the DateTimePicker Control :
SetButtonInfo(nIndex, nID, TBBS_SEPARATOR, nWidth);

CRect rect;
GetItemRect(nIndex, &rect);
if (!dtPicker.Create(DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP, rect, this, nID))
{
TRACE("Failed to create DateTimePicker Control\n");
return FALSE;
}
return TRUE;
}

taken from : http://www.codeproject.com/docking/ToolbarWithCombo.asp
but it doesn't work for the CDateTimeCtrl, the control doesn't appear.

Can someone help me ?

Thanks in advance,
Phil

AnswerRe: CDateTimeCtrl in ToolBar ? Pin
BrutalDeath026-Jan-04 6:02
sussBrutalDeath026-Jan-04 6:02 
GeneralPrint preview and complex shaped CRgn Pin
JezzerP26-Jan-04 5:34
JezzerP26-Jan-04 5:34 
GeneralRe: Print preview and complex shaped CRgn Pin
CodeBrain26-Jan-04 23:15
CodeBrain26-Jan-04 23:15 
GeneralRe: Print preview and complex shaped CRgn Pin
JezzerP29-Jan-04 5:50
JezzerP29-Jan-04 5:50 
GeneralRe: Print preview and complex shaped CRgn Pin
CodeBrain29-Jan-04 22:10
CodeBrain29-Jan-04 22:10 
GeneralRe: Print preview and complex shaped CRgn Pin
Anonymous29-Jan-04 22:29
Anonymous29-Jan-04 22:29 
Generalimporting from Gallery Pin
act_x26-Jan-04 5:12
act_x26-Jan-04 5:12 
GeneralRe: importing from Gallery Pin
Antti Keskinen26-Jan-04 5:42
Antti Keskinen26-Jan-04 5:42 
GeneralReading pixel color values from a DIB Pin
harwanegg26-Jan-04 4:51
harwanegg26-Jan-04 4:51 
GeneralRe: Reading pixel color values from a DIB Pin
John R. Shaw26-Jan-04 5:59
John R. Shaw26-Jan-04 5:59 
GeneralIPersistPropertyBag question Pin
Vermithrax26-Jan-04 4:51
Vermithrax26-Jan-04 4:51 
Generalvirtual functions and dlls Pin
Achim Mueller26-Jan-04 4:51
Achim Mueller26-Jan-04 4:51 
GeneralRe: virtual functions and dlls Pin
Diddy26-Jan-04 6:17
Diddy26-Jan-04 6:17 
GeneralRe: virtual functions and dlls Pin
Achim Mueller26-Jan-04 7:00
Achim Mueller26-Jan-04 7:00 
GeneralRe: virtual functions and dlls Pin
Diddy26-Jan-04 10:41
Diddy26-Jan-04 10:41 
Generalenum type Pin
Jerome Conus26-Jan-04 4:46
Jerome Conus26-Jan-04 4:46 
GeneralRe: enum type Pin
J. Eric Vaughan26-Jan-04 5:08
J. Eric Vaughan26-Jan-04 5:08 

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.