Source/Paint/Controller.h
void onMouseMove(HWND hStatusBarWnd,
    int x, int y) {
    wsprintf(buffer, L"Vị trí con trỏ: (%d, %d)", x, y);

    SendMessage(
      hStatusBarWnd,
      SB_SETTEXT,
      (WPARAM)1,
      (LPARAM)buffer
    );
  }
/// <summary>
/// Track the mouse and record position.
/// </summary>
/// <param name="hStatusBarWnd"></param>
/// <param name="x"></param>
/// <param name="y"></param>

Track the mouse and record position.
Track the mouse and record position .
void onMouseMove(HWND hStatusBarWnd,
    int x, int y) {
    wsprintf(buffer, L"Vị trí con trỏ: (%d, %d)", x, y);
    SendMessage(
      hStatusBarWnd,
      SB_SETTEXT,
      (WPARAM)1,
      (LPARAM)buffer
    );
  }
void onMouseMove ( HWND hStatusBarWnd , int x , int y ) { wsprintf ( buffer , L" y ; SendMessage ( hStatusBarWnd , SB_SETTEXT , ( WPARAM ) 1 , ( LPARAM ) buffer ) ; }
<summary>
Track the mouse and record position.
<summary > Track the mouse and record position .