Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating and registering 1

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
Simple question, but not for me ;-(
If I'd have an class derived from some MFC class. What does mean to register it? I can create it, or so, but what registration for? (AfxRegisterWndClass is that function ;-).
Thx
BYe
bubak
btw. if there's some doc'bout this, here with it (and I dont't want to hear MSDN, MSDN,.... ;-)
 
You have to register your own window classes.
Nothing to worry about.
For the most part.
I've never used it, so far as I remember, maybe once.
Oh well.
 
AfxRegisterWndClass register a window painting stile, it's brush and cursor, it's icon.

Then when creating a window of your CWnd derived class will automatically have all this features.

However, I don't advise you to use that function so much on NT platforms. From my experience I have noticed that this call WON'T register a Pattern brush for the window style under NT platforms.

Take care, this function also consumes system's user resurces, so avoid calling it twice for the same class.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top