|
-
Dec 10th, 2001, 07:47 PM
#1
Thread Starter
Fanatic Member
Minimize Button
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?
-
Dec 10th, 2001, 07:51 PM
#2
PowerPoster
So, are you trying to prevent the minimising of a form beyond just setting its minimise button to false?
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Dec 10th, 2001, 07:53 PM
#3
Frenzied Member
so you dont want the minimize button
-
Dec 10th, 2001, 08:02 PM
#4
Thread Starter
Fanatic Member
MINI Button
Originally posted by rjlohan
So, are you trying to prevent the minimising of a form beyond just setting its minimise button to false?
Not of a FORM, of an APP, i.e: OutLook, etc
-
Dec 10th, 2001, 08:03 PM
#5
Thread Starter
Fanatic Member
Originally posted by Motoxpro
so you dont want the minimize button
Not my friend not of a FORM, of an APP, i.e: OutLook, etc
-
Dec 10th, 2001, 08:20 PM
#6
Frenzied Member
Originally posted by Luis Moises Rojas
Not my friend not of a FORM, of an APP, i.e: OutLook, etc
why you post it 2 times?
-
Dec 10th, 2001, 08:22 PM
#7
Frenzied Member
Originally posted by Motoxpro
why you post it 2 times?
Server error, O Great King Spam.
I'm bringing geeky back...
-
Dec 10th, 2001, 09:58 PM
#8
Frenzied Member
no he quoted him and me and said the same thing
-
Dec 10th, 2001, 10:52 PM
#9
PowerPoster
What's he saying in English? He wants to disable the Minimize button in Outlook?
-
Dec 11th, 2001, 07:27 AM
#10
Thread Starter
Fanatic Member
Originally posted by MidgetsBro
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..
-
Dec 11th, 2001, 10:50 AM
#11
PowerPoster
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?
-
Dec 11th, 2001, 11:13 AM
#12
Thread Starter
Fanatic Member
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?
YES SIR
-
Dec 11th, 2001, 10:45 PM
#13
PowerPoster
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|