In order for me to understand the use of LPDISPATCH, let's look at the Calendar control.
I've got a dialog application and I've inserted the Calendar control. I want the user to change the "Day Font" at run time, let's say setting the font to "italic" (m_font.SetItalic(TRUE)). For this I need to set the properties of the m_font, and then call the function
void CCalendar::SetDayFont(LPDISPATCH newValue)
static BYTE parms =
InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
My problem is that I do not know how to pass in for the newValue.
I've tried many things, but still with no luck. Thanks