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

C / C++ / MFC

 
GeneralStandard Template Library Pin
DR19423-Mar-05 7:26
DR19423-Mar-05 7:26 
GeneralRe: Standard Template Library Pin
Chris Losinger3-Mar-05 10:12
professionalChris Losinger3-Mar-05 10:12 
GeneralRe: Standard Template Library Pin
DR19423-Mar-05 11:35
DR19423-Mar-05 11:35 
GeneralScanning & extracting from CString Pin
José Luis Sogorb3-Mar-05 6:50
José Luis Sogorb3-Mar-05 6:50 
GeneralRe: Scanning & extracting from CString Pin
David Crow3-Mar-05 7:50
David Crow3-Mar-05 7:50 
GeneralRe: Scanning & extracting from CString Pin
Blake Miller3-Mar-05 11:08
Blake Miller3-Mar-05 11:08 
GeneralRe: Scanning & extracting from CString Pin
José Luis Sogorb3-Mar-05 21:22
José Luis Sogorb3-Mar-05 21:22 
GeneralText AlignMent Pin
Anand for every one3-Mar-05 6:31
Anand for every one3-Mar-05 6:31 
See the code.
where uiTextAlignment is UINT with an class object.
Every this becomes true even if i set uiTextAlignment to DT_CENTER |DT_VCENTER.

What is wrong?OMG | :OMG:



if ( pProperty->uiTextAlignment & DT_BOTTOM == DT_BOTTOM )
{
m_Bottom=true;
m_Multiline=false;
}
else
{
m_Bottom=false;
}

if ( pProperty->uiTextAlignment & DT_CENTER == DT_CENTER )
{
m_HCenter=true;
}
else
{
m_HCenter=false;
}


if ( pProperty->uiTextAlignment & DT_LEFT == DT_LEFT )
{
m_left=true;
}
else
{
m_left=false;
}

if ( pProperty->uiTextAlignment & DT_RIGHT == DT_RIGHT )
{
m_Right=true;
}
else
{
m_Right=false;
}

if( pProperty->uiTextAlignment & DT_SINGLELINE == DT_SINGLELINE )
{
m_Multiline=false;
}
else
{
m_Multiline=true;
}

if ( pProperty->uiTextAlignment & DT_TOP == DT_TOP )
{
m_Top=true;
m_Multiline=false;
}
else
{
m_Top=false;
}


if ( pProperty->uiTextAlignment & DT_VCENTER == DT_VCENTER )
{
m_VCenter=true;
m_Multiline=false;
}
else
{
m_VCenter=false;
}
GeneralRe: Text AlignMent Pin
Anand for every one3-Mar-05 6:50
Anand for every one3-Mar-05 6:50 
GeneralRe: Text AlignMent Pin
David Crow3-Mar-05 7:57
David Crow3-Mar-05 7:57 
GeneralMicrosoft Visual Studios 6.0 Executables Problems Pin
royh3143-Mar-05 6:21
royh3143-Mar-05 6:21 
GeneralRe: Microsoft Visual Studios 6.0 Executables Problems Pin
Michael Dunn3-Mar-05 8:47
sitebuilderMichael Dunn3-Mar-05 8:47 
GeneralFind file Creator/Author Pin
bosfan3-Mar-05 3:54
bosfan3-Mar-05 3:54 
GeneralRe: Find file Creator/Author Pin
David Crow3-Mar-05 4:41
David Crow3-Mar-05 4:41 
GeneralRe: Find file Creator/Author Pin
Anonymous3-Mar-05 9:00
Anonymous3-Mar-05 9:00 
GeneralRe: Find file Creator/Author Pin
bosfan3-Mar-05 18:28
bosfan3-Mar-05 18:28 
GeneralRe: Find file Creator/Author Pin
bosfan3-Mar-05 18:31
bosfan3-Mar-05 18:31 
GeneralCrash in ocx Create Pin
g3e3-Mar-05 3:36
g3e3-Mar-05 3:36 
Generalnested splitter Pin
rgchezhian3-Mar-05 3:16
rgchezhian3-Mar-05 3:16 
QuestionCString bug? Pin
ThinkingPrometheus3-Mar-05 3:16
ThinkingPrometheus3-Mar-05 3:16 
AnswerRe: CString bug? Pin
mcsherry3-Mar-05 4:14
mcsherry3-Mar-05 4:14 
AnswerRe: CString bug? Pin
David Crow3-Mar-05 4:34
David Crow3-Mar-05 4:34 
GeneralProblem with pointers Pin
Swind3-Mar-05 3:00
Swind3-Mar-05 3:00 
GeneralRe: Problem with pointers Pin
Steen Krogsgaard3-Mar-05 3:24
Steen Krogsgaard3-Mar-05 3:24 
Generalproblem usink accept() [winsocket] Pin
eli150219793-Mar-05 2:48
eli150219793-Mar-05 2:48 

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.