![]() |
remove WS_EX_LAYOUTRTL ? |
Post Reply
|
| Author | |
omid
Newbie
Joined: 03 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: remove WS_EX_LAYOUTRTL ?Posted: 30 November 2007 at 4:38pm |
|
Hi . Can anyone help me to remove WS_EX_LAYOUTRTL from an editcontrol dynamically at runtime? I have an editcontrol in my mfc dialog from that can change it's layouts to RTL(right to left mirror ) at run time but tired to remove this ExStyle and return it to LTR layout . . .
here is the code :
if (isRTL){
} else{
//RedrawWindow(NULL,NULL,RDW_INVALIDATE | RDW_UPDATENOW |RDW_ERASE|RDW_ALLCHILDREN); GetDlgItem(IDC_ENFA_TEXT)->SetFocus(); } UpdateWindow(); |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 December 2007 at 3:00am |
|
Hi,
Never add WS_EX_LAYOUTRTL for edit control - it doesn't support it.
Use these flags :
WS_EX_RIGHT | WS_EX_LEFTSCROLLBAR | WS_EX_RTLREADING
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
omid
Newbie
Joined: 03 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 December 2007 at 5:27am |
|
yes , also use SetWindowLong and it work . thanks . |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |