Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3362
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl questions
Next Topic: ColumnList - Set(Value key, Value val) - Working right?
Goto Forum:
  


Current Time: Wed May 22 17:18:02 CEST 2024

Total time taken to generate the page: 0.02024 seconds