runMessageLoop method

void runMessageLoop()

Runs the Windows message loop for this window.

This method continuously processes and dispatches Windows messages until the window is closed.

Implementation

void runMessageLoop() {
  final msg = calloc<MSG>();
  while (GetMessage(msg, NULL, 0, 0) != FALSE) {
    TranslateMessage(msg);
    DispatchMessage(msg);
  }
  free(msg);
}