15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Communicating with a data control from an OCX

Chris Hetlinger -- ChrisH@advancedbionics.com
Monday, October 21, 1996

Environment: VC 4.0 on NT 4.0

I have rewritten a large OCX which used to be a VBX in the Windows 3.1,
but one thing I don't know how to do is communicate with a Data Control
in Visual Basic 4.0.  I used to do this by responding to the
VBM_DATA_AVAILABLE and VBM_DATA_REQUEST messages in VB 3.0.

Another thing (of less immediate importance to me right now but still of
interest) is how to make the combo boxes which represent enumerated
properties and show up in the property window.  I have designed them on
the property pages and they appear nicely there. 




Chris Hetlinger -- ChrisH@advancedbionics.com
Thursday, October 24, 1996

>KB Article 137354 "SAMPLE: How to Use Enumerated Properties in an OLE 
>Control" might help you solve your second problem.

I should have mentioned at the beginning that the method outlined in the
KB
article is what I am using now, but that brings up the entire property
page with
all of the custom properties on it for each property concerned when I
would
rather just display a simple combo box below the property on the
property
window as I have done in the past in VB 3.0 or as comes up for Stock
properties
such as Visible.  Interestingly, the color palette rather than the
property page
comes up for my custom color properties.  What am I missing here?





| Вернуться в корень Архива |