Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Missing  XTP_GN_PREVIEWAPPLY
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing XTP_GN_PREVIEWAPPLY

 Post Reply Post Reply
Author
Message
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: Missing XTP_GN_PREVIEWAPPLY
    Posted: 16 July 2011 at 6:21am
I tried to implement live preview using a CXTPControlComboBoxGalleryPopupBar. It works fine, except I don't receive any  XTP_GN_PREVIEWAPPLY messages. 

To reproduce: use GallerySample, MainFrame.cpp:

ON_NOTIFY(XTP_GN_PREVIEW..., ID_GALLERY_FONT, OnStylesPreview...)
to
ON_NOTIFY(XTP_GN_PREVIEW..., ID_GALLERY_FONTFACE, OnStylesPreview...)

Run the program, change the font and look in the output window - OnStylesPreviewApply is not called.

Solved it myself by overriding CXTPControlComboBoxGalleryPopupBar::OnLButtonUp and added access to m_bPreview in a derived CXTPControlGallery, or am I missing something?
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Posted: 05 October 2011 at 11:09am
Any news on this? 

To me it sounds like a bug that XTP_GN_PREVIEWAPPLY is not supported by the CXTPControlComboBoxGalleryPopupBar.  (Tested in 15.1.3.)
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.