c++builder - Registering Style Hook in C++ -


i trying register style hook component have built using c++. not sure how tclass class definition. word, how call registerstylehook in c++. example component called tprogressbarex , style hook tprogressbarexstylehook. tcustomstyleengine::registerstylehook(tprogressbarex, tprogressbarexstylehook); not compile because need tclass tprogressbarex , tstylehookclass tprogressbarexstylehook.

thank sam

i found answer myself. tstylehookclass typedef tclass , __classid returns tclass class definition. call should like:
tcustomstyleengine::registerstylehook(__classid(tprogressbarex), __classid(tprogressbarexstylehook));


Comments