|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,507
Rep Power: 61 ![]() ![]() ![]() ![]() ![]() ![]() |
kX and VC++ questions
Whats the story with using C++ control classes instead of, or in conjunction with kX control classes. I realize that kX versions of some of the VC++ control classes exist, but some have only limited functionality, etc. Are there any issues with using VC++ control classes in kX plugins? (i.e. kStatic, does not seem to have a center text option, nor does it have a setting for height (so you cannot use muliple lines). You could use the ModifyStyle function to add the SS_CENTER style, and resize it using MoveWindow, or whatever, but it would seem easier to just use CStatic instead. There are similair issues with some of the other kX control classes).
What about using a dialog created in the dialog editor? Where is the best place to free resources used by the plugin? -Russ |
|
|
|
|
|
#2 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
You mean MFC controls. You can use whatever you like, if you examine the headers you'll see that every kX control inherits kWindow and kWindow inherits CWnd. You can use all the functions in those two classes to modify the controls. Some custom controls that I use in my plugins (knob, led counter, graphs) are MFC controls, because I could use them in other apps, not only kX.
__________________
Miss you, Steve... |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,507
Rep Power: 61 ![]() ![]() ![]() ![]() ![]() ![]() |
Yes, I mean MFC controls. I figured that was the case, but wanted to be sure.
Thanks, -Russ |
|
|
|
|
|
|
|
HardwareHeaven Extreme Member
Join Date: Jan 2005
Posts: 5,507
Rep Power: 61 ![]() ![]() ![]() ![]() ![]() ![]() |
BTW: In addition to the previous questions:
What value are you using for WINVER (or are you even bothering)? Since kX supports OS's back to Win98SE, then I would guess that we would need to set WINVER (_WIN32_WINDOWS) to 0x0410 (Win98). What IE Version (_WIN32_IE)? -Russ |
|
|
|
|
|
#5 |
|
kX user
Join Date: Apr 2004
Posts: 851
Rep Power: 0 ![]() |
Doesn't matter I think
__________________
Miss you, Steve... |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|