Print Page | Close Window

CXTPSkinObjectToolBar::IsHorizontal()

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=24426
Printed Date: 23 November 2024 at 12:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPSkinObjectToolBar::IsHorizontal()
Posted By: Greg Pryor
Subject: CXTPSkinObjectToolBar::IsHorizontal()
Date Posted: 19 September 2023 at 3:24pm
This function is looking at the parent window style instead of its own style.
What class of parent window is it expecting to find?
In my case the parent window is a MFC CFrameWnd which uses some of the style bits differently than CXTPSkinObjectToolBar is expecting.

// (MFC) Frame window styles
#define FWS_ADDTOTITLE  0x00008000L // modify title based on content
#define FWS_PREFIXTITLE 0x00004000L // show document name before app name
#define FWS_SNAPTOBARS  0x00002000L // snap size to size of contained bars

// ControlBar styles
#define CBRS_ALIGN_LEFT     0x1000L
#define CBRS_ALIGN_TOP      0x2000L
#define CBRS_ALIGN_RIGHT    0x4000L
#define CBRS_ALIGN_BOTTOM   0x8000L
#define CBRS_ALIGN_ANY      0xF000L
#define CBRS_ORIENT_VERT    (CBRS_ALIGN_LEFT|CBRS_ALIGN_RIGHT)




Replies:
Posted By: matsjansson
Date Posted: 08 November 2023 at 2:49pm
I have the same issue, the result is that the separators are drawn horizontal instead of vertical!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net