if(msg==WM_CREATE)
{
CREATESTRUCT *cs = reinterpret_cast<CREATESTRUCT *>(lparam);
- SetWindowLong(hwnd, 0, reinterpret_cast<LONG>(cs->lpCreateParams));
+ SetWindowLongPtr(hwnd, 0, reinterpret_cast<LONG_PTR>(cs->lpCreateParams));
}
else
{
- Msp::Graphics::Window *wnd = reinterpret_cast<Msp::Graphics::Window *>(GetWindowLong(hwnd, 0));
+ Msp::Graphics::Window *wnd = reinterpret_cast<Msp::Graphics::Window *>(GetWindowLongPtr(hwnd, 0));
Msp::Graphics::Window::Event ev;
ev.msg = msg;
ev.wparam = wparam;
bool was_visible = visible;
if(was_visible)
hide();
- SetWindowLong(priv->window, GWL_EXSTYLE, exstyle);
- SetWindowLong(priv->window, GWL_STYLE, style);
+ SetWindowLongPtr(priv->window, GWL_EXSTYLE, exstyle);
+ SetWindowLongPtr(priv->window, GWL_STYLE, style);
if(was_visible)
show();
}