Click here to Skip to main content
16,003,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar15-May-04 22:09
Prakash Nadar15-May-04 22:09 
GeneralRe: Shared Property Pages..! Pin
Halloko15-May-04 22:24
Halloko15-May-04 22:24 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar16-May-04 3:58
Prakash Nadar16-May-04 3:58 
GeneralRe: Shared Property Pages..! Pin
Halloko16-May-04 4:02
Halloko16-May-04 4:02 
GeneralRe: Shared Property Pages..! Pin
Prakash Nadar16-May-04 4:09
Prakash Nadar16-May-04 4:09 
QuestionVB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Nirav Doshi14-May-04 22:28
Nirav Doshi14-May-04 22:28 
AnswerRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Member 42102515-May-04 6:35
Member 42102515-May-04 6:35 
GeneralRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Nirav Doshi16-May-04 18:34
Nirav Doshi16-May-04 18:34 
Hi Pradeep,

Pradeep Maskeri wrote:
I assume that you call GetsafeHWnd()in OnCreate(LPCREATESTRUCT lpCreateStruct) function or after it is called and not in Constructor

Thanks for your reply!

My OCX is a wrapper for a hardware device - And doesn't need to create any window. So, I'm not handling WM_CREATE!

Now, if you make a similar OCX using MFC, and put it in a VB Form... Then try to debug the OCX code by making the VBClient.EXE with your OCX embedded in the VB Form, you can see that the OCX control's HWND is ALWAYS 0x00000000!

But if you insert the control in the ActiveX Test Container or another VC++ (MFC) client app, and then you debug your OCX code, you will see the OCX control's HWND has a legitimate value.

This is the problem, I have! Frown | :-( (

- Nirav
GeneralRe: VB doesn't provide an HWND to OLE Controls? How to get it for an MFC OCX? Pin
Member 42102517-May-04 5:59
Member 42102517-May-04 5:59 
GeneralRetrieving user details from the registry Pin
abdul moeed14-May-04 20:35
abdul moeed14-May-04 20:35 
GeneralRe: Retrieving user details from the registry Pin
22491714-May-04 21:56
22491714-May-04 21:56 
Generalreading and displaying a bmp image in vc++ Pin
Anonymous14-May-04 20:25
Anonymous14-May-04 20:25 
GeneralBackground Process Pin
cberam14-May-04 19:38
cberam14-May-04 19:38 
GeneralRe: Background Process Pin
22491714-May-04 22:01
22491714-May-04 22:01 
GeneralRe: Background Process Pin
cberam16-May-04 18:03
cberam16-May-04 18:03 
GeneralCombo box limit Pin
Anonymous14-May-04 18:47
Anonymous14-May-04 18:47 
GeneralRe: Combo box limit Pin
Michael Dunn14-May-04 20:10
sitebuilderMichael Dunn14-May-04 20:10 
Generalloan calculator Pin
felix joe14-May-04 18:42
felix joe14-May-04 18:42 
GeneralRe: loan calculator Pin
toxcct15-May-04 0:37
toxcct15-May-04 0:37 
Generalblocking processes Pin
kanetheterrible114-May-04 18:41
kanetheterrible114-May-04 18:41 
GeneralRe: blocking processes Pin
Alexander M.,16-May-04 1:23
Alexander M.,16-May-04 1:23 
Generalblocking processes Pin
kanetheterrible114-May-04 18:39
kanetheterrible114-May-04 18:39 
GeneralConstrol bar and splitters Pin
alex.barylski14-May-04 18:37
alex.barylski14-May-04 18:37 
GeneralAssigning a value to a static char array Pin
monrobot1314-May-04 17:50
monrobot1314-May-04 17:50 
GeneralRe: Assigning a value to a static char array Pin
nguyenvhn14-May-04 18:00
nguyenvhn14-May-04 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.