event handling

D

dragonslayer008

I am writing a custom control in C++/CLI. In the Visual Studio
designer, I clicked to handle the paint event. This worked fine
except that Visual Studio put the function definition in the header
file instead of the .cpp file. Is it okay if I move it to the .cpp
file? Or is this potentially a bad idea since it was generated code?
 
G

Guest

That should be fine. The risk occurs the other way around - i.e., if you add
to a block of code that is generated by a designer, you might have a problem
(but even then, it's usually only a problem if you add it in a way that the
designer doesn't recognize).
--
David Anton
http://www.tangiblesoftwaresolutions.com
Convert between VB, C#, C++, and Java
Instant C#
Instant VB
Instant C++
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top