Click here to Skip to main content
15,910,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to add outlookbar to multipe document? Pin
chinakknd1-Jul-07 15:35
chinakknd1-Jul-07 15:35 
QuestionVirtual keyboard losing window focus. Help! Pin
remarkpk111-Jul-07 13:45
remarkpk111-Jul-07 13:45 
AnswerRe: Virtual keyboard losing window focus. Help! Pin
Steve Echols1-Jul-07 17:55
Steve Echols1-Jul-07 17:55 
GeneralRe: Virtual keyboard losing window focus. Help! Pin
remarkpk112-Jul-07 5:00
remarkpk112-Jul-07 5:00 
Questionmemory allocation syntax Pin
prithaa1-Jul-07 9:52
prithaa1-Jul-07 9:52 
AnswerRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 10:01
Mark Salsbery1-Jul-07 10:01 
GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 17:11
prithaa1-Jul-07 17:11 
GeneralRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 19:42
Mark Salsbery1-Jul-07 19:42 
Atoms are described here[^].

BYTE pdest;
pdest += sizeof(DLGITEMTEMPLATE);
*(WORD*)pdest = 0xFFFF; // indicating atom value
pdest += sizeof(WORD);
*(WORD*)pdest = (USHORT)m_eTypeControl; // atom value for the control
pdest += sizeof(WORD);

In your case, if the WORD following a DLGITEMTEMPLATE struct is 0xFFFF then the next WORD is an
atom representing the class name of a control. The 0xFFFF is just an indicator to differentiate
between a Unicode string (which could be used instead) and an atom.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 19:59
prithaa1-Jul-07 19:59 
GeneralRe: memory allocation syntax Pin
Mark Salsbery1-Jul-07 20:09
Mark Salsbery1-Jul-07 20:09 
GeneralRe: memory allocation syntax Pin
prithaa1-Jul-07 20:21
prithaa1-Jul-07 20:21 
QuestionAdding Members to a Base Class Pin
ForNow1-Jul-07 8:05
ForNow1-Jul-07 8:05 
AnswerRe: Adding Members to a Base Class Pin
Mark Salsbery1-Jul-07 8:49
Mark Salsbery1-Jul-07 8:49 
GeneralRe: Adding Members to a Base Class Pin
ForNow1-Jul-07 8:57
ForNow1-Jul-07 8:57 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery1-Jul-07 12:11
Mark Salsbery1-Jul-07 12:11 
GeneralRe: Adding Members to a Base Class Pin
ForNow1-Jul-07 14:19
ForNow1-Jul-07 14:19 
GeneralRe: Adding Members to a Base Class Pin
Steve Echols1-Jul-07 17:32
Steve Echols1-Jul-07 17:32 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 6:59
Mark Salsbery2-Jul-07 6:59 
GeneralRe: Adding Members to a Base Class Pin
Mark Salsbery2-Jul-07 7:01
Mark Salsbery2-Jul-07 7:01 
GeneralRe: Adding Members to a Base Class Pin
ForNow2-Jul-07 12:13
ForNow2-Jul-07 12:13 
QuestionURLDownloadToFile dont work in worker thread [modified] Pin
awah1-Jul-07 5:19
awah1-Jul-07 5:19 
AnswerRe: URLDownloadToFile dont work in worker thread Pin
Mark Salsbery1-Jul-07 9:00
Mark Salsbery1-Jul-07 9:00 
Questionproblem in USB Pen Drive detection Pin
cyberanee1-Jul-07 3:42
cyberanee1-Jul-07 3:42 
QuestionWhere to declare global variables? Pin
KaKa'1-Jul-07 1:48
KaKa'1-Jul-07 1:48 
AnswerRe: Where to declare global variables? Pin
john56321-Jul-07 3:45
john56321-Jul-07 3:45 

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.