event handling

  • Thread starter Thread starter dragonslayer008
  • Start date Start date
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?
 
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
 
Back
Top