Flaming Idiots
Active Member
If you want to screw with some people, place the following code into your forms.
here is what it will do:
View attachment MirroredExample.jpg
And here is how I abused it.
View attachment 1279
EDIT: Also, for VB6 people, here is the same code:
And for C++ people:
Code:
Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
Get
Dim Params As CreateParams = MyBase.CreateParams
If Now.Month = 4 And Now.Day = 1 Then Params.ExStyle = Params.ExStyle Or &H400000
Return Params
End Get
End Property
View attachment MirroredExample.jpg
And here is how I abused it.
View attachment 1279
EDIT: Also, for VB6 people, here is the same code:
Code:
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Sub Form_Initialize()
SetWindowLong Me.hWnd, -20, &H400000 Or GetWindowLong(hWnd, -20)
End Sub
And for C++ people:
Code:
// If not using MFC, change GetSafeHwnd to whatever the forms handle property is.
SetWindowLong(this->GetSafeHwnd(), GWL_EXSTYLE, WS_EX_LAYOUTRTL|WS_EX_RTLREADING);


