It does not matter what you call from a main menu(APP, etc.), the minimize button MUST be enabled=false.
Does anyone know an API? or how?
Printable View
It does not matter what you call from a main menu(APP, etc.), the minimize button MUST be enabled=false.
Does anyone know an API? or how?
So, are you trying to prevent the minimising of a form beyond just setting its minimise button to false?
so you dont want the minimize button
Not of a FORM, of an APP, i.e: OutLook, etcQuote:
Originally posted by rjlohan
So, are you trying to prevent the minimising of a form beyond just setting its minimise button to false?
Not my friend not of a FORM, of an APP, i.e: OutLook, etcQuote:
Originally posted by Motoxpro
so you dont want the minimize button
why you post it 2 times?Quote:
Originally posted by Luis Moises Rojas
Not my friend not of a FORM, of an APP, i.e: OutLook, etc
Server error, O Great King Spam.Quote:
Originally posted by Motoxpro
why you post it 2 times?
no he quoted him and me and said the same thing
What's he saying in English? He wants to disable the Minimize button in Outlook?
Not my friend. If from your APP you call OUTLOOK, the minimize button must be enabled=false, but if you call Word, the minimize button must be enabled=false, and so on..Quote:
Originally posted by MidgetsBro
What's he saying in English? He wants to disable the Minimize button in Outlook?
So you want to call Microsoft Outlook from your application, and once you do, you disable the minimize button in your application. Same with any of the other programs you mentioned. Is this correct?
YES SIRQuote:
Originally posted by MidgetsBro
So you want to call Microsoft Outlook from your application, and once you do, you disable the minimize button in your application. Same with any of the other programs you mentioned. Is this correct?
You can use Serge's code he posted in your other thread. Just use it like this:
VB Code:
'By Serge 8/14/2001 Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Const GWL_STYLE = (-16) Private Const WS_MINIMIZEBOX = &H20000 Private Sub Command1_Click() Dim lngStyle As Long 'open your program here lngStyle = GetWindowLong(Me.hwnd, GWL_STYLE) 'find your own app lngStyle = lngStyle Xor WS_MINIMIZEBOX 'set the style (disabled minimize) Call SetWindowLong(Me.hwnd, GWL_STYLE, lngStyle) 'disable it End Sub