I am coding an application in VB (VS-2008). It is a MDI application with one Parent form and many child forms. Child forms can be minimized but can not be Maximized.
I want to know 4 Windows messaging values.
1. What is the WM Value when a child form is shown on MDI Client Area
2. What is the WM Value when a child form is Closed/Disposed.
3. What is the WM Value when a child form is minimized.
4. What is the WM Value when a child form is normalized.
By using WinProc function I could see the Messages but could not differentiate which is for what, If any body can provide me the Window Message values i will be very thankfull.
Thanks.
K. K. Barman
kanoj.k.barman@gmail.com
8th Sep 2020
What I have tried:
<system.security.permissions.permissionsetattribute(system.security.permissions.securityaction.demand, name:="FullTrust" )=""> _
Protected Overrides Sub WndProc(ByRef m As Message)
Dim MyRec As Integer = Me.DataGridView1.Rows.Count + 1
Dim MyString() As String = {MyRec.ToString, m.Msg, m.WParam.ToString, m.LParam.ToString}
Me.DataGridView1.Rows.Add(MyString)
Select Case (m.Msg)
Case WM_ACTIVATEAPP
appActive = (m.WParam.ToInt32() <> 0)
Me.Invalidate()
End Select
MyBase.WndProc(m)
End Sub