PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Wx - WxMinimizar
Wx - WxMinimizar
Started by BOLLER, Jul., 19 2017 6:10 PM - No answer
Connect yourself…
BOLLER
#1
Registered member
3,657 messages
Popularité : +175 (223 votes)
Posted on July, 19 2017 - 6:10 PM
Procedure
WxMinimizar
(
)
n
WinStyle
is int
n
NewStyle
is int
n
Propiedadd
is int
=
0x2
// -0x1 Disable Maxime
// -0x2 Disable Minimize
// -0x8 Disable the system menu (icon, max & min buttons, etc)
// -040 Disable tittle bar
// -0x4 Disable resize
n
WinStyle
=
CallDLL32
(
"User32"
,
"GetWindowLongA"
,
Handle
(
""
)
, -
16
)
//nNewStyle = BinaryXOR(HiWord(nWinStyle),0x2) * 65536 + LoWord(nWinStyle)
n
NewStyle
=
MakeInteger
(
BinaryXOR
(
HiWord
(
n
WinStyle
)
,
0x2
) ,
LoWord
(
n
WinStyle
) )
CallDLL32
(
"User32"
,
"SetWindowLongA"
,
Handle
(
""
)
, -
16
,
n
NewStyle
)
CallDLL32
(
"User32"
,
"SetWindowPos"
,
Handle
(
""
)
,
0
,
0
,
0
,
0
,
0
,
0x27
)
//---------------------------------------------------------------------------------------------------
//Codigo extra para auxiliar en toma de desiciones (si quieres crecer la funcion para que con un parametro active o //desactive, se puede eliminar sin problema
//---------------------------------------------------------------------------------------------------
IF
HiWord
(
n
NewStyle
)
-
HiWord
(
n
WinStyle
) >
0
THEN
//El nuevo estilo contempla el cambio (por eso es mayor en valor)
Info
(
"Se activo"
)
ELSE
Info
(
"Desactivado"
)
END
//BTN_SYST_MAXIMIZE..Visible=False
//BTN_SYST_MINIMIZE..Visible=False
//BTN_SYST_CLOSE..Visible=False
//-----------------------------RETURN
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text