Click here to Skip to main content
15,914,327 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCTime Pin
john56329-Sep-10 0:08
john56329-Sep-10 0:08 
AnswerRe: CTime Pin
Aescleal9-Sep-10 0:14
Aescleal9-Sep-10 0:14 
QuestionTab order in MFC dialog with CTabCtrl Pin
User 269428-Sep-10 23:53
professionalUser 269428-Sep-10 23:53 
AnswerRe: Tab order in MFC dialog with CTabCtrl Pin
Anand Todkar9-Sep-10 4:04
Anand Todkar9-Sep-10 4:04 
GeneralRe: Tab order in MFC dialog with CTabCtrl Pin
User 269429-Sep-10 21:40
professionalUser 269429-Sep-10 21:40 
AnswerRe: Tab order in MFC dialog with CTabCtrl Pin
David Crow10-Sep-10 3:32
David Crow10-Sep-10 3:32 
GeneralRe: Tab order in MFC dialog with CTabCtrl Pin
User 2694210-Sep-10 3:47
professionalUser 2694210-Sep-10 3:47 
QuestionTime format Pin
AbhiHcl8-Sep-10 22:02
AbhiHcl8-Sep-10 22:02 
AnswerRe: Time format Pin
Richard MacCutchan8-Sep-10 23:16
mveRichard MacCutchan8-Sep-10 23:16 
AnswerRe: Time format Pin
Eugen Podsypalnikov8-Sep-10 23:52
Eugen Podsypalnikov8-Sep-10 23:52 
QuestionRe: Time format Pin
David Crow9-Sep-10 4:01
David Crow9-Sep-10 4:01 
QuestionSpliiting a DWORD Pin
Ben Aldhouse8-Sep-10 21:39
Ben Aldhouse8-Sep-10 21:39 
AnswerRe: Spliiting a DWORD Pin
Electron Shepherd8-Sep-10 21:40
Electron Shepherd8-Sep-10 21:40 
GeneralRe: Spliiting a DWORD Pin
Ben Aldhouse8-Sep-10 21:48
Ben Aldhouse8-Sep-10 21:48 
GeneralRe: Spliiting a DWORD Pin
Ben Aldhouse16-Sep-10 21:55
Ben Aldhouse16-Sep-10 21:55 
AnswerRe: Spliiting a DWORD Pin
Ben Aldhouse8-Sep-10 21:45
Ben Aldhouse8-Sep-10 21:45 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan8-Sep-10 23:03
mveRichard MacCutchan8-Sep-10 23:03 
GeneralRe: Spliiting a DWORD Pin
normanS11-Sep-10 18:17
normanS11-Sep-10 18:17 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan11-Sep-10 21:37
mveRichard MacCutchan11-Sep-10 21:37 
GeneralRe: Spliiting a DWORD Pin
Ben Aldhouse16-Sep-10 21:52
Ben Aldhouse16-Sep-10 21:52 
GeneralRe: Spliiting a DWORD Pin
Richard MacCutchan16-Sep-10 22:37
mveRichard MacCutchan16-Sep-10 22:37 
AnswerRe: Spliiting a DWORD PinPopular
Aescleal8-Sep-10 23:24
Aescleal8-Sep-10 23:24 
Another option (provided you don't want to transmit your packed 32 bit values to another machine) is to use a union with a set of bit-fields:

union tree_ctrl_item
{
    DWORD packed_;
    struct
    {
        DWORD bits_24_ : 24;
        DWORD bits_8_  : 8;
    }
    unpacked_;
};


Then you can use the packed and unpacked forms as ordinary structure members and add member functions for construction and extraction of values if you feel so inclined.

There are numerous "here be dragons" caveats with this but provided you're consistent in the usage it'll be portable if not binary compatible.

Cheers,

Ash
QuestionCrect pass to CWnd, possible? Pin
loid grey manuel8-Sep-10 17:42
loid grey manuel8-Sep-10 17:42 
AnswerRe: Crect pass to CWnd, possible? Pin
Cool_Dev8-Sep-10 18:26
Cool_Dev8-Sep-10 18:26 
GeneralRe: Crect pass to CWnd, possible? Pin
loid grey manuel8-Sep-10 19:10
loid grey manuel8-Sep-10 19:10 

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.