Click here to Skip to main content
15,888,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General2D memory allocation Pin
RobertFavier8-Apr-05 14:52
RobertFavier8-Apr-05 14:52 
GeneralRe: 2D memory allocation Pin
mark novak9-Apr-05 6:00
mark novak9-Apr-05 6:00 
GeneralRe: 2D memory allocation Pin
RobertFavier11-Apr-05 10:25
RobertFavier11-Apr-05 10:25 
QuestionHow to write out the points to rectangles to the view/screen? Pin
Håvar8-Apr-05 13:48
Håvar8-Apr-05 13:48 
AnswerRe: How to write out the points to rectangles to the view/screen? Pin
mark novak10-Apr-05 4:11
mark novak10-Apr-05 4:11 
AnswerRe: How to write out the points to rectangles to the view/screen? Pin
John R. Shaw10-Apr-05 10:37
John R. Shaw10-Apr-05 10:37 
GeneralDate time control Pin
The Professor8-Apr-05 12:40
The Professor8-Apr-05 12:40 
GeneralRe: Date time control Pin
mark novak9-Apr-05 5:19
mark novak9-Apr-05 5:19 
The CDateTimePickerCtrl uses the SYSTEMTIME structure for it’s time. Getting it goes a little something like this:

CDateTimePickerCtrl dtp(GetDlgItem(IDC_DATETIME1));<br />
SYSTEMTIME st;<br />
Dtp.GetSystemTime(&st);


If your using it with the SHOW NONE property you can check the return value of GetSystemTime() making sure it returns GDT_VALID, if it’s GDT_NONE then the checkmark is cleared. If you want to use WTL::CTime add #include <atltime.h> to your stdafx.h and you can pass the SYSTEMTIME to it’s constructor and bam. CTime from a CDateTimePickerCtrl.

CDateTimePickerCtrl dtp(GetDlgItem(IDC_DATETIME1));<br />
SYSTEMTIME st;<br />
Dtp.GetSystemTime(&st);<br />
CTime t(st);

GeneralRe: Date time control Pin
The Professor9-Apr-05 12:56
The Professor9-Apr-05 12:56 
GeneralProcess handling Pin
mpapeo8-Apr-05 11:03
mpapeo8-Apr-05 11:03 
GeneralRe: Process handling Pin
mark novak9-Apr-05 5:44
mark novak9-Apr-05 5:44 
GeneralRe: Process handling Pin
mpapeo9-Apr-05 10:59
mpapeo9-Apr-05 10:59 
GeneralRe: Process handling Pin
mark novak10-Apr-05 3:57
mark novak10-Apr-05 3:57 
GeneralRe: Process handling Pin
mpapeo10-Apr-05 6:05
mpapeo10-Apr-05 6:05 
GeneralCollect rows from an external SQL Server from my MFC-app Pin
anderslundsgard8-Apr-05 10:15
anderslundsgard8-Apr-05 10:15 
GeneralCString to Integer Pin
Anonymous8-Apr-05 9:29
Anonymous8-Apr-05 9:29 
GeneralRe: CString to Integer Pin
Chris Losinger8-Apr-05 9:41
professionalChris Losinger8-Apr-05 9:41 
GeneralRe: CString to Integer Pin
Joel Holdsworth8-Apr-05 11:57
Joel Holdsworth8-Apr-05 11:57 
GeneralRe: CString to Integer Pin
deldeep9-Apr-05 2:52
deldeep9-Apr-05 2:52 
Generalhelp with shering a file in a DLL Pin
Member 18672758-Apr-05 8:45
Member 18672758-Apr-05 8:45 
GeneralIE address update Pin
nmhuy8-Apr-05 8:31
nmhuy8-Apr-05 8:31 
GeneralRe: IE address update Pin
ThatsAlok8-Apr-05 18:45
ThatsAlok8-Apr-05 18:45 
GeneralRe: IE address update Pin
nmhuy9-Apr-05 6:53
nmhuy9-Apr-05 6:53 
Generalsize of file Pin
smarty128-Apr-05 8:26
smarty128-Apr-05 8:26 
GeneralRe: size of file Pin
David Crow8-Apr-05 8:56
David Crow8-Apr-05 8:56 

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.