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

C / C++ / MFC

 
QuestionCView doesn't respond to PostMessage Pin
masnu19-May-06 9:26
masnu19-May-06 9:26 
AnswerRe: CView doesn't respond to PostMessage Pin
Mauro Leggieri19-May-06 9:41
Mauro Leggieri19-May-06 9:41 
AnswerRe: CView doesn't respond to PostMessage Pin
led mike19-May-06 11:17
led mike19-May-06 11:17 
AnswerRe: CView doesn't respond to PostMessage Pin
Nibu babu thomas19-May-06 18:47
Nibu babu thomas19-May-06 18:47 
QuestionIterators in forms Pin
mgodsey19-May-06 8:15
mgodsey19-May-06 8:15 
AnswerRe: Iterators in forms Pin
led mike19-May-06 8:56
led mike19-May-06 8:56 
GeneralRe: Iterators in forms Pin
mgodsey19-May-06 10:26
mgodsey19-May-06 10:26 
Questionget HiByte [modifed] Pin
big_denny_20019-May-06 7:59
big_denny_20019-May-06 7:59 
Hi again Smile | :)



In windef.h we can see these defines :

#define LOBYTE(w)           ((BYTE)((DWORD_PTR)(w) & 0xff))
#define HIBYTE(w)           ((BYTE)((DWORD_PTR)(w) >> 8))


I don't understand how HIBYTE gets, most significant byte, by above code.

With LOBYTE all is clear.



I thought these macros were getting bytes from 32 bit value.

It found out they are for 16 bit values, now all is clear

thanks.

-- modified at 14:36 Friday 19th May, 2006
Questionget idd of object [modifed] Pin
big_denny_20019-May-06 6:51
big_denny_20019-May-06 6:51 
AnswerRe: get idd of object Pin
Cedric Moonen19-May-06 7:17
Cedric Moonen19-May-06 7:17 
AnswerRe: get idd of object Pin
David Crow19-May-06 7:20
David Crow19-May-06 7:20 
AnswerRe: get idd of object Pin
Michael Dunn19-May-06 7:21
sitebuilderMichael Dunn19-May-06 7:21 
GeneralRe: get idd of object Pin
big_denny_20019-May-06 7:36
big_denny_20019-May-06 7:36 
GeneralRe: get idd of object Pin
Michael Dunn19-May-06 7:38
sitebuilderMichael Dunn19-May-06 7:38 
GeneralRe: get idd of object Pin
big_denny_20019-May-06 7:45
big_denny_20019-May-06 7:45 
QuestionCustom Controls in MFC Pin
Paul Groetzner19-May-06 6:26
Paul Groetzner19-May-06 6:26 
AnswerRe: Custom Controls in MFC Pin
Cedric Moonen19-May-06 7:14
Cedric Moonen19-May-06 7:14 
QuestionRe: Custom Controls in MFC Pin
David Crow19-May-06 7:18
David Crow19-May-06 7:18 
AnswerRe: Custom Controls in MFC Pin
Laxman Auti19-May-06 18:41
Laxman Auti19-May-06 18:41 
QuestionHow do I get data from a toolbar to a dialog? Pin
Chris Corben19-May-06 6:06
Chris Corben19-May-06 6:06 
AnswerRe: How do I get data from a toolbar to a dialog? Pin
Kiran Kumar Singani20-May-06 2:19
Kiran Kumar Singani20-May-06 2:19 
GeneralRe: How do I get data from a toolbar to a dialog? Pin
Chris Corben20-May-06 2:51
Chris Corben20-May-06 2:51 
Questiontoolbar stacking problem Pin
Victor Monteverde19-May-06 4:53
Victor Monteverde19-May-06 4:53 
QuestionGdi Multiple Window Problem Pin
Diego.Martinez19-May-06 4:36
Diego.Martinez19-May-06 4:36 
Questionpointers question Pin
Mridang Agarwalla19-May-06 3:53
Mridang Agarwalla19-May-06 3:53 

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.