Class Decleration
-
AoA I was working on a project. I want to discuss a question, is it possible that we override whole definition of existing class. Means e.g. I make my own class named TextBox. And it override the existing windows class. Whenever TextBox is written it supposed to be my class. We dont have to provide a whole path means. namespace.className. Please help me out if any one can. Thanks in advance.
-
AoA I was working on a project. I want to discuss a question, is it possible that we override whole definition of existing class. Means e.g. I make my own class named TextBox. And it override the existing windows class. Whenever TextBox is written it supposed to be my class. We dont have to provide a whole path means. namespace.className. Please help me out if any one can. Thanks in advance.
No, you can't do that, you can't make the entire project just magically use a class other than the one you actually used. The best you can do is a search and replace.
Christian Graus Driven to the arms of OSX by Vista.
-
No, you can't do that, you can't make the entire project just magically use a class other than the one you actually used. The best you can do is a search and replace.
Christian Graus Driven to the arms of OSX by Vista.
yes i understand your suggestion. My requirement is i want to paint all controls by myself. I searched the net and find a way that can be possible is Hooks. But i can not find exact Paint Messages of each control. Can you help me in it. and Thanks for your reply of previous question.
-
yes i understand your suggestion. My requirement is i want to paint all controls by myself. I searched the net and find a way that can be possible is Hooks. But i can not find exact Paint Messages of each control. Can you help me in it. and Thanks for your reply of previous question.
Hooks do not do what you hope to do. The most likely thing is a using statement at the top of every class which redefines the TextBox, for example, as being an object called TextBox in your namespace instead of the usual one.
Christian Graus Driven to the arms of OSX by Vista.