Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Window move virtual function
|
|
|
|
|
|
Re: Window move virtual function [message #28515 is a reply to message #28468] |
Sat, 04 September 2010 23:40 |
|
koldo
Messages: 3360 Registered: August 2008
|
Senior Veteran |
|
|
Quote: | The only problem is that it is necessary to change DHCtrl, as hwnd and CloseHWND() have to be "protected:" instead of "private:".
Mirek, Daniel, Massimo, other, what do you think about this?
|
Do you approve this?
#ifdef PLATFORM_WIN32
#ifndef PLATFORM_WINCE
class DHCtrl : public Ctrl {
public:
virtual void State(int reason);
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
virtual void NcCreate(HWND hwnd);
virtual void NcDestroy();
private:
void OpenHWND();
void SyncHWND();
protected: // NEW
void CloseHWND();
HWND hwnd;
public:
HWND GetHWND() { return hwnd; }
// void Refresh() { InvalidateRect(GetHWND(), NULL, false); }
DHCtrl();
~DHCtrl();
};
Best regards
Iñaki
|
|
|
|
Goto Forum:
Current Time: Mon May 06 04:40:20 CEST 2024
Total time taken to generate the page: 0.02013 seconds
|