Página 1 de 1

Atualização Hwgui 06-08-2026

Enviado: 06 Ago 2026 19:26
por Itamar M. Lins Jr.
Olá!
Correção da Status Bar no Windows com Unicode.
download/file.php?id=15060

Código: Selecionar todos

2026-08-06 18:30 UTC+0300 Itamar M. Lins Jr. <itamarlins at gmail.com>
    * source/winapi/control.c:
      - Fixed HB_FUNC( HWG_INITSTATUS ) to perform proper cumulative 
        calculation of status bar right-edge parts coordinates (SB_SETPARTS).
      - Replaced hb_arrayGetNI with hb_arrayGetNL to guarantee flawless 
        numeric extraction on modern 64-bit architectures (GCC UCRT64).
      - Added support for 0 and -1 sizes to properly auto-expand panels.

    * source/winapi/drawtext.c:
      - Fixed HB_FUNC( HWG_WRITESTATUSWINDOW ) to use correct HB_SIZE data type.
      - Updated HB_PARSTR macro usage with explicit length pointer reference.
      - Fixed string truncation bug (single char output) under Unicode builds.

    * source/winapi/guimain.prg:
      - Fixed hwg_WriteStatus() function to call hwg_WriteStatusWindow() 
        instead of generic hwg_SendMessage().
      - Ensures proper ANSI/Unicode string marshalling for HSTATUS controls.