![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The System.Windows.Forms.Form.RightToLeft property doesn't respect GetProcessDefaultLayout. (I say this because calling SetProcessDefaultLayout before the form is created has no effect on the form yet GetProcessDefaultLayout reports that the default layout has been set). Why doesn't it respect this useful setting ? Ben |
#3
| |||
| |||
|
|
The System.Windows.Forms.Form.RightToLeft property doesn't respect GetProcessDefaultLayout. (I say this because calling SetProcessDefaultLayout before the form is created has no effect on the form yet GetProcessDefaultLayout reports that the default layout has been set). Why doesn't it respect this useful setting ? |
#4
| |||
| |||
|
|
The System.Windows.Forms.Form.RightToLeft property doesn't respect GetProcessDefaultLayout. (I say this because calling SetProcessDefaultLayout before the form is created has no effect on the form yet GetProcessDefaultLayout reports that the default layout has been set). Why doesn't it respect this useful setting ? This may offer a hint (SetProcessDefaultLayout doc): "If using this function with a mirrored window, note that the SetProcessDefaultLayout function does not mirror the whole process and all the device context (DC)s created in it. It mirrors only the mirrored window's DCs. To mirror any DC, use the SetLayout function." Also, part of the GetProcessDefaultLayout doc: "GetProcessDefaultLayout function gets the default layout that is used when windows are created with no parent or owner" So if the window has an owner or parent is not working, and only if SetProcessDefaultLayout is called before the creation of the window. This may be an explanation on not :-) -- Mihai Nita [Microsoft MVP, Windows - SDK] ------------------------------------------ Replace _year_ with _ to get the real email |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |