Print Page | Close Window

Problem with toggle button

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=16656
Printed Date: 29 April 2024 at 10:04am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with toggle button
Posted By: Ayub
Subject: Problem with toggle button
Date Posted: 03 May 2010 at 6:16am

Hi,

I created a toggle button using windows CreateWindow method.

HBITMAP icon;

toggleBG = CreateWindow( "BUTTON", NULL, WS_CHILD | WS_VISIBLE | WS_TABSTOP |

BS_BITMAP | BS_AUTOCHECKBOX | BS_PUSHLIKE, 10, 10, 100, 30, this->GetSafeHwnd(),

NULL, AfxGetApp()->m_hInstance, NULL );

::SendMessage( toggleBG, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)icon);

When I support skin to my application then button does not look like button and do not shows toggle effect.




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