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 » RemoveFullRefresh(), how?
RemoveFullRefresh(), how? [message #1079] Sun, 19 February 2006 20:46 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
I want to use HDC m_hdc=GetDC() and paint myself. I've found RemoveFullRefresh() method but I've got an error:
Ctrl::RemoveFullRefresh' : cannot access private member declared in class 'Ctrl'. How could I use it or what are the alternatives?
Re: RemoveFullRefresh(), how? [message #1080 is a reply to message #1079] Sun, 19 February 2006 22:00 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
What do you expect from RemoveFullRefresh?

"HDC" painting should go like this:

void MyCtrl::Paint(Draw& w)
{
   HDC hdc = w.BeginGdi();
// now use hdc
   w.EndGdi();   
}


Of course, this is Win32 platform specific...

In X11, equivalent methods are:

XftDraw *GetXftDraw() const;
GetDrawable() const;
GC GetGC() const;

Mirek
Re: RemoveFullRefresh(), how? [message #1085 is a reply to message #1080] Mon, 20 February 2006 00:10 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sun, 19 February 2006 16:00

What do you expect from RemoveFullRefresh?

"HDC" painting should go like this:

void MyCtrl::Paint(Draw& w)
{
   HDC hdc = w.BeginGdi();
// now use hdc
   w.EndGdi();   
}


Of course, this is Win32 platform specific...

In X11, equivalent methods are:

XftDraw *GetXftDraw() const;
GetDrawable() const;
GC GetGC() const;

Mirek



Yes, thank you, this works. But I wanted to disable U++ Paint-Draw system Smile...
Re: RemoveFullRefresh(), how? [message #1089 is a reply to message #1085] Mon, 20 February 2006 09:15 Go to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
fudadmin wrote on Sun, 19 February 2006 18:10

luzr wrote on Sun, 19 February 2006 16:00

What do you expect from RemoveFullRefresh?

"HDC" painting should go like this:

void MyCtrl::Paint(Draw& w)
{
   HDC hdc = w.BeginGdi();
// now use hdc
   w.EndGdi();   
}


Of course, this is Win32 platform specific...

In X11, equivalent methods are:

XftDraw *GetXftDraw() const;
GetDrawable() const;
GC GetGC() const;

Mirek



Yes, thank you, this works. But I wanted to disable U++ Paint-Draw system Smile...




Even that is possible. Depends on what level you want to do that. Relatively safe option is to use DHCtrl, which is special Ctrl that has HWND (normal Ctrls do not). Then override WindowProc and handle WM_PAINT messages.

Mirek
Previous Topic: How to set transparency level for static rectangle?
Next Topic: Use U++ in Internet Explorer as ActiveX control?
Goto Forum:
  


Current Time: Sat May 11 12:28:22 CEST 2024

Total time taken to generate the page: 0.02431 seconds