Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTPSkinObjectToolBar::IsHorizontal()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


 Post Reply Post Reply
Greg Pryor View Drop Down

Joined: 19 September 2023
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Pryor Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSkinObjectToolBar::IsHorizontal()
    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

Back to Top
matsjansson View Drop Down

Joined: 09 May 2023
Location: Solna
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote matsjansson Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2023 at 2:49pm
I have the same issue, the result is that the separators are drawn horizontal instead of vertical!
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.140 seconds.