Click here to Skip to main content
15,906,766 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: gethostbyaddr problem Pin
David Crow16-Apr-03 2:24
David Crow16-Apr-03 2:24 
GeneralRe: gethostbyaddr problem Pin
Tom Wright16-Apr-03 3:42
Tom Wright16-Apr-03 3:42 
GeneralRe: gethostbyaddr problem Pin
David Crow16-Apr-03 3:53
David Crow16-Apr-03 3:53 
GeneralRe: gethostbyaddr problem Pin
Tom Wright16-Apr-03 4:42
Tom Wright16-Apr-03 4:42 
GeneralRe: gethostbyaddr problem Pin
Tom Wright16-Apr-03 5:05
Tom Wright16-Apr-03 5:05 
GeneralFile Comparisons Pin
Colin Davidson15-Apr-03 10:06
Colin Davidson15-Apr-03 10:06 
GeneralRe: File Comparisons Pin
Joe Woodbury15-Apr-03 14:02
professionalJoe Woodbury15-Apr-03 14:02 
GeneralEdit Ctrl Style(ES_CENTER) Pin
Mr. Maan15-Apr-03 9:53
Mr. Maan15-Apr-03 9:53 
Hi Guys,
I am facing a problem while playing with different styles of the Edit Control. I want to toggle between the alignement styles ES_LEFT,ES_RIGHT and ES_CENTER at run time through selecting them through radio buttons. I have tried to do it through the following code, but it does't work in case of above stated style bit whereas the same code
works correct for ES_LOWERCASE and ES_UPPERCASE bits;

//To switch to centered alignment <br />
	DWORD	dwStyleOld;<br />
	DWORD	dwStyleNew;<br />
	CRect   rect;<br />
	dwStyleOld = m_EditCtrl.GetStyle();<br />
	dwStyleNew = dwStyleOld & ~ES_LEFT;<br />
        dwStyleNew = dwStyleNew | ES_CENTER;<br />
	m_EditCtrl.ModifyStyle(dwStyleOld, dwStyleNew);<br />
	m_EditCtrl.GetWindowRect(&rect);<br />
	InvalidateRect(&rect);

Regards,
Nasir Maan
GeneralRe: Edit Ctrl Style(ES_CENTER) Pin
Miszou15-Apr-03 10:54
Miszou15-Apr-03 10:54 
GeneralRe: Edit Ctrl Style(ES_CENTER) Pin
Mr. Maan15-Apr-03 11:14
Mr. Maan15-Apr-03 11:14 
GeneralRe: Edit Ctrl Style(ES_CENTER) Pin
Gary R. Wheeler18-Apr-03 5:35
Gary R. Wheeler18-Apr-03 5:35 
Generalstring, map STL problem Pin
Matthew Fleming15-Apr-03 8:55
Matthew Fleming15-Apr-03 8:55 
GeneralRe: string, map STL problem Pin
Ben Burnett15-Apr-03 9:18
Ben Burnett15-Apr-03 9:18 
GeneralRe: string, map STL problem Pin
jhwurmbach15-Apr-03 21:38
jhwurmbach15-Apr-03 21:38 
GeneralRe: string, map STL problem Pin
richard_k1-Jun-10 15:19
richard_k1-Jun-10 15:19 
GeneralURGENT: Sending Fax !!! Pin
Hadi Rezaee15-Apr-03 8:52
Hadi Rezaee15-Apr-03 8:52 
GeneralRe: URGENT: Sending Fax !!! Pin
Michael P Butler15-Apr-03 22:18
Michael P Butler15-Apr-03 22:18 
GeneralRe: URGENT: Sending Fax !!! Pin
Hadi Rezaee17-Apr-03 15:09
Hadi Rezaee17-Apr-03 15:09 
GeneralKilling processes using TerminateProcess() Pin
Jonathan.Oakley15-Apr-03 8:29
Jonathan.Oakley15-Apr-03 8:29 
GeneralRe: Killing processes using TerminateProcess() Pin
Erik Juhl15-Apr-03 9:16
Erik Juhl15-Apr-03 9:16 
GeneralRe: Killing processes using TerminateProcess() Pin
Jonathan.Oakley15-Apr-03 9:48
Jonathan.Oakley15-Apr-03 9:48 
GeneralFiles Pin
d.f15-Apr-03 7:53
d.f15-Apr-03 7:53 
GeneralRe: Files Pin
Joaquín M López Muñoz15-Apr-03 8:09
Joaquín M López Muñoz15-Apr-03 8:09 
GeneralMenu in Dialog Pin
bobthemonkey15-Apr-03 7:48
bobthemonkey15-Apr-03 7:48 
GeneralRe: Menu in Dialog Pin
Joaquín M López Muñoz15-Apr-03 8:05
Joaquín M López Muñoz15-Apr-03 8:05 

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.