Print Page | Close Window

CXTCaption

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=15308
Printed Date: 18 May 2024 at 5:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTCaption
Posted By: Hazelnut
Subject: CXTCaption
Date Posted: 06 October 2009 at 11:36pm
How can I create a Caption on an SDI application that does not have a splitter window? The application uses ListViews in a TabControl.

The following is from the sample, I've tried various values for 'm_wndSplitter' without success - this, GetParent, etc.


  if (!m_wndCaption.Create(&m_wndSplitter, _T("Caption Text"), CPWS_EX_RAISED_EDGE,
        WS_VISIBLE|SS_CENTER|SS_CENTERIMAGE, CRect(0,0,0,0), m_wndSplitter.IdFromRowCol(0, 0)))
    {
        TRACE0("Failed to caption window.\n");
        return -1;
    }


Thank you for any help.

Paul



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