PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → 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
Iniciado por Boller, dez., 21 2021 6:45 PM - Sem resposta
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em dezembro, 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/