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

C / C++ / MFC

 
GeneralRe: Dialog Control Pin
RChin3-Feb-05 23:02
RChin3-Feb-05 23:02 
GeneralRe: Dialog Control Pin
nchannon4-Feb-05 7:43
nchannon4-Feb-05 7:43 
General3d Plot in Visual C++ 6.0 Pin
andand3-Feb-05 21:45
andand3-Feb-05 21:45 
GeneralRe: 3d Plot in Visual C++ 6.0 Pin
krmed4-Feb-05 1:37
krmed4-Feb-05 1:37 
GeneralDate Time Picker Pin
LiYS3-Feb-05 21:34
LiYS3-Feb-05 21:34 
GeneralRe: Date Time Picker Pin
Anthony_Yio3-Feb-05 21:57
Anthony_Yio3-Feb-05 21:57 
GeneralRe: Date Time Picker Pin
LiYS3-Feb-05 23:02
LiYS3-Feb-05 23:02 
GeneralRe: Date Time Picker Pin
RChin3-Feb-05 23:21
RChin3-Feb-05 23:21 
After tinkering with the control, I found that the little drop down window is a CMonthCalCtrl that you can access using the GetMonthCalCtrl() member function of the CDateTimeCtrl class.
This window is created dynamically when you click on the drop down button, so you will need to access this class on the drop down event (DTN_DROPDOWN).

The problem is that resizing this window does not resize the individual control, only allow more calendar months to be displayed; a bit like how Outlook displys its months at the side of the frame.

<code>
void CTestDlg::OnDtnDropdownDatetimepicker1(NMHDR *pNMHDR, LRESULT *pResult)
{
 CMonthCalCtrl* pCtrl = this->m_DateTimeCtrl.GetMonthCalCtrl();
 if(pCtrl != NULL)
 {
   CRect rect;
   pCtrl->GetClientRect(&rect);
   rect.InflateRect(70, 90);
   pCtrl->MoveWindow(&rect);
 }
 *pResult = 0;
}
</code>





I Dream of Absolute Zero

GeneralRe: Date Time Picker Pin
LiYS4-Feb-05 3:04
LiYS4-Feb-05 3:04 
GeneralRe: Date Time Picker Pin
RChin4-Feb-05 3:44
RChin4-Feb-05 3:44 
GeneralRe: Date Time Picker Pin
LiYS4-Feb-05 14:05
LiYS4-Feb-05 14:05 
GeneralRe: Date Time Picker Pin
David Crow4-Feb-05 3:24
David Crow4-Feb-05 3:24 
GeneralRe: Date Time Picker Pin
LiYS4-Feb-05 14:02
LiYS4-Feb-05 14:02 
GeneralAnother Process Window Pin
Member 17059883-Feb-05 21:33
Member 17059883-Feb-05 21:33 
GeneralRe: Another Process Window Pin
Antony M Kancidrowski4-Feb-05 2:13
Antony M Kancidrowski4-Feb-05 2:13 
GeneralRe: Another Process Window Pin
Member 17059884-Feb-05 2:40
Member 17059884-Feb-05 2:40 
GeneralRe: Another Process Window Pin
Antony M Kancidrowski4-Feb-05 12:02
Antony M Kancidrowski4-Feb-05 12:02 
GeneralCString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
xcavin3-Feb-05 21:30
xcavin3-Feb-05 21:30 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
pc_dev3-Feb-05 22:05
pc_dev3-Feb-05 22:05 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
One Stone3-Feb-05 22:14
One Stone3-Feb-05 22:14 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
RChin3-Feb-05 22:43
RChin3-Feb-05 22:43 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
2249173-Feb-05 23:20
2249173-Feb-05 23:20 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
RChin3-Feb-05 23:27
RChin3-Feb-05 23:27 
GeneralRe: CString(&quot;hai&quot;).Format(&quot;hello&quot;); Pin
Bob Ciora4-Feb-05 1:36
Bob Ciora4-Feb-05 1:36 
GeneralRe: CString("hai").Format("hello"); Pin
2249174-Feb-05 16:21
2249174-Feb-05 16:21 

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.