.developing fb backend

git-svn-id: svn://ultimatepp.org/upp/trunk@3569 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-06-26 22:27:01 +00:00
parent 1b438f125c
commit e62c75e1d2
3 changed files with 7 additions and 4 deletions

View file

@ -2,7 +2,7 @@
NAMESPACE_UPP
#define LLOG(x) DLOG(x)
#define LLOG(x) // DLOG(x)
#define LTIMING(x) // TIMING(x)
bool Ctrl::globalbackpaint;

View file

@ -2,7 +2,7 @@
NAMESPACE_UPP
#define LLOG(x) // DLOG(x)
#define LLOG(x) // DLOG(x)
Ptr<Ctrl> Ctrl::eventCtrl;
Ptr<Ctrl> Ctrl::mouseCtrl;

View file

@ -234,8 +234,11 @@ LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) {
EndIgnore();
return 0L;
}
if(_this)
DoMouse(MOUSEWHEEL, Point((dword)lParam), (short)HIWORD(wParam));
if(_this) {
Point p(0, 0);
::ClientToScreen(hwnd, p);
DoMouse(MOUSEWHEEL, Point((dword)lParam) - p, (short)HIWORD(wParam));
}
if(_this) PostInput();
return 0L;
case WM_SETCURSOR: