Manifext ( Checkbox + Vb6 ) = Barf!

O.K. I am creating a random prog (nothing to do with you snobs here :P ) and I am having a problem with the Manifest. Yes, I am using VB6, sorry. Here is the code that I am using to implement the Manifest file:

Option Explicit
Private Declare Function InitCommonControls Lib "Comctl32.dll" () As Long

Private Sub Form_Initialize()
'Gives XP Interface if manifest is included.
Dim X As Long
X = InitCommonControls
End Sub

However when I have an Option and/or Checkbox, it shows up like the attached image. I checked the coding in the manifest file itself, but everything seems alright. Can somebody please help me?

post-749-1072806097_thumb.png

screenexport.gif
screenexport.gif

#93425

Try placing the radio/check-boxes in a picturebox :)

#93757

Thanks Andreas. I guess manifest doesn't like frames. Good, I didn't like them anyway.

#93777

It's not really the frame that matters - if I recall right - but VB6 messing with the WM_ERASEBKGND and WM_PAINT messages :). On the other hand, when using the VCL (Borland C++ Builder / Delphi) version 5, frames don't get drawn using the MSSTYLE.

#93784

I always thought that frames were "odd." I wonder why MS decided to treat frames different? Isn't it essentially a picture box with a border and a label at the top? Oh well, I'm using picture boxes from now on anyway.

#93785

"frames" as VB call them, are in WIN32-talk called groupboxes and don't do their on WM_ERASEBKGND. Picture boxes do so that's the difference. I think in VB frames are actually pictureboxes.

#93829