Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / March 2005

Tip: Looking for answers? Try searching our database.

using the standard property builders

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip - 03 Mar 2005 21:53 GMT
I'm writing unmanaged C++ for a VS2003 plugin.

There's a node in my project heirarchy which has a color property, and I'm
trying to use MapPropertyToBuilder so that I can use
CTLBLDTYPE_STDPROPBUILDER in conjunction with CATID_ColorBuilder.  I don't
want to write my own color-picker, I want to use the built-in colorpicker.  
My code in MapPropertyToBuilder looks sorta like this:

   switch (dispid)
   {
       case DISPID_MyGoofyColorProperty:
           *pdwCtlBldType = CTLBLDTYPE_FSTDPROPBUILDER;
           StringFromCLSID(CATID_ColorBuilder, pbstrGuidBldr);
           *pfRetVal = VARIANT_TRUE;
           break;

This causes a crash.  Advice?  The standard property builders (htmlbuilder,
scriptbuilder, fontbuilder, etc) are listed in ocdesign.idl but the VSIP
documentation doesn't tell me how to use them.  Also, if I want to use the
standard builder, then what type should my color property be?  A string?  A
ULONG?  A Variant?
Philip - 07 Mar 2005 18:55 GMT
I gave up on trying to use MapPropertyToBuilder and discovered that if I
simply make my property have a type of OLE_COLOR, the color picker
automatically appears.  But I'm still curious about how to use the built-in
builders (eg, FontBuilder)...

> I'm writing unmanaged C++ for a VS2003 plugin.
>
[quoted text clipped - 17 lines]
> standard builder, then what type should my color property be?  A string?  A
> ULONG?  A Variant?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.