PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → Como remover o minimizar, maximizar de uma janela de um projeto windev
Como remover o minimizar, maximizar de uma janela de um projeto windev
Started by Boller, Dec., 21 2021 6:45 PM - No answer
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on December, 21 2021 - 6:45 PM
Solução

nStyle is int = API("User32","GetWindowLongA", nHandle, -16) // GWL_STYLE
nStyle = BinaryAND(nStyle, BinaryNOT(65536) ) // WS_MAXIMIZEBOX // Ponteiro do Maximize removido

bRes is boolean = API("User32","SetWindowLongA", nHandle, -16, nStyle)) // seto novo estilo sem o maximize
IF bRes THEN
RESULT API("User32","SetWindowPos", nHandle, 0, 0, 0, 0, 0, 0x27) // desenha janela sem maximize
ELSE
RESULT False
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/