#include <rfb_win32/MonitorInfo.h>
#include <rfb_win32/DeviceContext.h>
#include <rfb_win32/Win32Util.h>
+#include <rfb_win32/MsgBox.h>
#include <vncviewer/DesktopWindow.h>
#include <vncviewer/resource.h>
try {
result = _this->processMessage(msg, wParam, lParam);
+ } catch (rfb::UnsupportedPixelFormatException &e) {
+ MsgBox(0, e.str(), MB_OK);
+ _this->getCallback()->closeWindow();
} catch (rdr::Exception& e) {
vlog.error("untrapped: %s", e.str());
}
virtual void refreshMenu(bool enableSysItems) = 0;
};
+ Callback *getCallback() const { return callback; }
+
// Currently accessible so that the CConn can releaseAllKeys & check
// whether Ctrl and Alt are down...
rfb::win32::CKeyboard kbd;