Hwgui Atualização 06-09-2026

Projeto HwGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 8272
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 7 vezes
Curtiram: 2 vezes

Hwgui Atualização 06-09-2026

Mensagem por Itamar M. Lins Jr. »

Olá!
Correção de passagem de parâmetros, janelas MDI.
E mais outros problemas.

Código: Selecionar todos

2026-09-06 12:11 UTC-0300 Itamar Lins  <itamarlins at gmail.com>
  ### Fixed
  - **hwindow.prg**: fixed lost `bColor` parameter in `HChildWindow:New()` –
    an extra comma before `bColor` in the call to `::Super:New()` shifted it
    past `HWindow:New()`'s 22nd (last) formal parameter, so the argument was
    silently discarded and the child window's background brush was never
    set.
  - **hwindow.prg**: fixed missing `msg` argument in the calls to
    `hwg_onTrackScroll()` from `HChildWindow:onEvent()` and
    `HMDIChildWindow:onEvent()` – the function is declared as
    `hwg_onTrackScroll( oWnd, msg, wParam, lParam )`, but only 3 arguments
    were passed, shifting `wParam`/`lParam` one position to the left and
    breaking horizontal/vertical scroll-bar tracking (`WM_HSCROLL`/
    `WM_VSCROLL`) on child and MDI child windows.

2026-08-26 17:00 UTC-0300 Itamar Lins  <itamarlins at gmail.com>
  ### Fixed
  - **gt_hwgui_w.c**: fixed double free in `GTHWG_GETSIZE` – removed
    `hb_itemRelease()` after `hb_itemReturn()`, which corrupted memory and
    could cause silent crashes on exit.
  - **gt_hwgui_w.c**: added `HB_SYMBOL_UNUSED()` for unused variables in
    `hb_gt_hwg_Refresh` to eliminate W0033/W0003 warnings under `-w3 -es2`.
  - **gt_hwgui_w.c**: added braces around conditional blocks in
    `gthwg_MouseEvent`, `gthwg_KeyEvent` and `hb_gt_hwg_Info` to fix
    `-Wmisleading-indentation` warnings from Clang/GCC and improve code
    clarity.
  - Adjust add lib ucrt, gdiplus on file test1.hbp
  - Adjust add DUNICODE flags gthwg.hbp
Saudações,
Itamar M. Lins Jr.
Responder