PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y 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, 21,dic. 2021 18:45 - No hay respuesta
Miembro registrado
4.521 mensajes
Publicado el 21,diciembre 2021 - 18:45
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/