Ownerdraw menuItem

  • Thread starter Thread starter Michel
  • Start date Start date
M

Michel

I use the ownerdraw methode to customize my menu.

So, inside the sub OnDrawItem I need to know the size of my form

Do you have any idea to do that.

I dont want to use the reference to the name of my Form because I use
a class and I wish to use it with any name.
Thanks in advance
 
Michel,
I use the ownerdraw methode to customize my menu.

So, inside the sub OnDrawItem I need to know the size of my form

Do you have any idea to do that.

Dim main As MainMenu = Me.GetMainMenu()
If Not main Is Nothing Then
theSize = main.GetForm().Size
End If



Mattias
 
Wonderfull. Exactly what I want. Thanks Mattias

Mattias Sjögren said:
Michel,


Dim main As MainMenu = Me.GetMainMenu()
If Not main Is Nothing Then
theSize = main.GetForm().Size
End If



Mattias
 
Back
Top