Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: fopen (* delete *) Pin
ZoogieZork19-Aug-03 13:52
ZoogieZork19-Aug-03 13:52 
GeneralRe: fopen (* delete *) Pin
Mahesh Varma19-Aug-03 17:49
Mahesh Varma19-Aug-03 17:49 
GeneralHelp in SDI Pin
Snyp19-Aug-03 13:15
Snyp19-Aug-03 13:15 
GeneralRe: Help in SDI Pin
David Crow20-Aug-03 2:37
David Crow20-Aug-03 2:37 
GeneralWindows message queue Pin
kumarjainendra19-Aug-03 12:21
kumarjainendra19-Aug-03 12:21 
GeneralRe: Windows message queue Pin
Michael Dunn19-Aug-03 12:32
sitebuilderMichael Dunn19-Aug-03 12:32 
GeneralRe: Windows message queue Pin
John M. Drescher19-Aug-03 13:56
John M. Drescher19-Aug-03 13:56 
GeneralOCX Control Dispatching Pin
BarryPearlman19-Aug-03 10:37
BarryPearlman19-Aug-03 10:37 
This is my first OCX control. I managed to "hack" through using an example and can Get/Set the stock properties through a "wrapper class", however, I am having trouble adding one of my own custon properties. I am using VC++ 7.0.

Wrapper Class:
//--------------------------------------------------------------------------------.cpp
void CWrap::m_vSetParams(int nPtSize)
{
// I am able to get nPtSize!

return;
}
//---------------------------------------------------------------------------------.h
---
void m_vSetParams(int, CString);
---

OCX Control Class
//--------------------------------------------------------------------------------.cpp
//DISPATCH MAP
---
DISP_PROPERTY_EX(CGrpBoxExCtrl, "PointSize", GetPtSize, SetPtSize, VT_I2)
--
//DISPATCH MAP

void MyOCXCtrl::SetPtSize(short nPtSize)
{
m_nPtSize = nPtSize;

return;
}

BSTR MyOCX::GetPtSize()
{

return ........
}

//---------------------------------------------------------------------------------.h

short m_nPtSize;
---
public:
enum {};
afx_msg void SetPtSize(int);
afx_msg short GetPtSize();
---

//---------------------------------------------------------------------------------.odl

Totally Lost Here!Confused | :confused:

//---------------------------------------------------------------------------- Question

How do I get the information (nPtSize) from the "wrapper" class to the control. Could
someone please fill in the above or direct me to a simple artical or sample that would guide
me.

Is there a Wizard that does this, and if so, where in the Visual Studio editor is it?

Need I point out that MSDN is totally & hopelessly confusing? Smile | :)

Barry
General"No appropriate constructor available" Pin
adaoja19-Aug-03 10:24
adaoja19-Aug-03 10:24 
GeneralRe: "No appropriate constructor available" Pin
David Crow19-Aug-03 10:50
David Crow19-Aug-03 10:50 
GeneralRe: "No appropriate constructor available" Pin
adaoja19-Aug-03 22:20
adaoja19-Aug-03 22:20 
GeneralRe: "No appropriate constructor available" Pin
David Crow20-Aug-03 2:29
David Crow20-Aug-03 2:29 
GeneralRe: "No appropriate constructor available" Pin
adaoja20-Aug-03 3:04
adaoja20-Aug-03 3:04 
GeneralRe: "No appropriate constructor available" Pin
David Crow20-Aug-03 3:47
David Crow20-Aug-03 3:47 
GeneralRe: "No appropriate constructor available" Pin
adaoja20-Aug-03 4:12
adaoja20-Aug-03 4:12 
GeneralRe: "No appropriate constructor available" Pin
David Crow20-Aug-03 4:16
David Crow20-Aug-03 4:16 
GeneralRe: "No appropriate constructor available" Pin
Christian Graus19-Aug-03 11:08
protectorChristian Graus19-Aug-03 11:08 
GeneralRe: "No appropriate constructor available" Pin
Steve S19-Aug-03 21:59
Steve S19-Aug-03 21:59 
GeneralRe: "No appropriate constructor available" Pin
adaoja19-Aug-03 22:23
adaoja19-Aug-03 22:23 
GeneralRe: "No appropriate constructor available" Pin
David Crow20-Aug-03 2:28
David Crow20-Aug-03 2:28 
GeneralSpy++ can not capture message of this window Pin
Shawn Ning19-Aug-03 10:10
Shawn Ning19-Aug-03 10:10 
GeneralRe: Spy++ can not capture message of this window Pin
HPSI19-Aug-03 11:11
HPSI19-Aug-03 11:11 
GeneralWebcam with MFC Pin
MKlucher19-Aug-03 10:10
MKlucher19-Aug-03 10:10 
GeneralRe: Webcam with MFC Pin
HPSI19-Aug-03 11:16
HPSI19-Aug-03 11:16 
Generalerasing a list entry Pin
Kuniva19-Aug-03 8:32
Kuniva19-Aug-03 8:32 

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.