Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)
From: Lt (zdolna.bestia_at_wp.pl)
Date: 07/25/04
- Next message: JKop: "Re: If declared as virtual in base, its derived version also is virtual. Why not for destructors?"
- Previous message: Marc Goodman: "Re: Refutation of the DisProof of the Halting Problem"
- In reply to: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Next in thread: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Reply: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jul 2004 20:55:45 +0200
Philip wrote:
>GetDlgItem returns a HWND, which happens to be the first member inside
CMonthCalCtrl
CWindow::GetDlgItem (ATL) returns a HWND but I'm using CWnd::GetDlgItem
(MFC) that returns CWnd*
>Try:
>CMonthCalCtrl cal(GetDlgItem(IDC_MONTHCALENDAR2));
>int nCount = cal.GetMonthRange(...);
That dosen't work because the constructor CMonthCalCtrl::CMonthCalCtrl ()
doesn't take any parameters.
Lt
- Next message: JKop: "Re: If declared as virtual in base, its derived version also is virtual. Why not for destructors?"
- Previous message: Marc Goodman: "Re: Refutation of the DisProof of the Halting Problem"
- In reply to: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Next in thread: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Reply: Phlip: "Re: Does my object exist? So why its HWND doesn't exist? That's a question... (CMonthCalCtrl control)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|