MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / nativeEvent

Method nativeEvent

DSView/pv/mainframe.cpp:1109–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109bool MainFrame::nativeEvent(const QByteArray &eventType, void *message, long *result)
1110{
1111#ifdef _WIN32
1112
1113 if (_parentNativeWidget != NULL)
1114 {
1115 MSG *msg = static_cast<MSG*>(message);
1116 HWND hwnd = _parentNativeWidget->Handle();
1117
1118 switch (msg->message)
1119 {
1120 case WM_NCMOUSEMOVE:
1121 case WM_NCLBUTTONDOWN:
1122 case WM_NCLBUTTONUP:
1123 case WM_NCLBUTTONDBLCLK:
1124 case WM_NCHITTEST:
1125 {
1126 *result = long(SendMessageW(hwnd,
1127 msg->message, msg->wParam, msg->lParam));
1128 return true;
1129 }
1130 }
1131 }
1132
1133#endif
1134
1135 return QWidget::nativeEvent(eventType, message, result);
1136}
1137
1138} // namespace pv

Callers

nothing calls this directly

Calls 1

HandleMethod · 0.80

Tested by

no test coverage detected