Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Problem with toggle button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with toggle button

 Post Reply Post Reply
Author
Message
Ayub View Drop Down
Newbie
Newbie


Joined: 08 January 2008
Location: India
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ayub Quote  Post ReplyReply Direct Link To This Post Topic: Problem with toggle button
    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.

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.141 seconds.