CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2008
    Posts
    80

    can some one help me to make check box control transparent

    Hi i am not able to make checkbox transparent

    I have attached the sample project
    Can some one tell me whats the problem in it


    thanx a lot
    Attached Files Attached Files
    Last edited by saratk; April 1st, 2008 at 02:28 AM.

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: can some one help me to make check box control transparent


  3. #3
    Join Date
    Jan 2008
    Posts
    80

    Re: can some one help me to make check box control transparent

    thanx for the reply HanneSThEGreaT

    i have gone through all the links before i post the question here

    i implimented the same method but still check box is not getting transparent

    there must be something more i need to do r something i missd out whic i was not able to figured out

    thats why i posted the code

    am still searching for the solution on google

    meanwhile if some one can figure out please let me

  4. #4
    Join Date
    Jan 2008
    Posts
    178

    Re: can some one help me to make check box control transparent

    Quote Originally Posted by saratk
    am still searching for the solution on google
    Rather Google Groups where it has been posted many times....

  5. #5
    Join Date
    May 2006
    Location
    Mumbai, India
    Posts
    292

    Re: can some one help me to make check box control transparent

    Hi saratk,

    As there is no such control available, you need to create one yourself. If you have gone through the links provided by HanneSThEGreaT, you would have noticed one such custom control by AliR(link 2).

    Try to understand and use it in your code. I have done the same. Please go through the zip file which have modified version for your project. Please note that I havent tested it.

    Thanks
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2008
    Posts
    80

    Re: can some one help me to make check box control transparent

    sachin thanx for the reply and effort you put in to resolve the issue..

    what actually u r doing in the code is painting the checkbox lable with the dialog background color ( what ever the color dialog has)..
    i found this work arrond before posting to this forum
    but in here the case is different... i am painting gradient color in dialog and i donno whic color comes during runtime
    so i cant hard code the color though if i hard code if i know the color beforehand .. it wont be helpfull because the color wud be gradient so it luks patch

    and
    I have done the same thing what was mentioned in the link2 given by
    the attached zip file shows the same... but no results

    but found some interesting thing in those links which i didnt understand clearly
    here it goes
    "
    investigating the manifest file, seems that the unicode project utilize
    version 6 common control while non-unicode don't. could you please tel me
    how to unutilize version6 common control?"

    I donno how to unutilize version6 comman control... that may help me to resolve the issue

    I am still investigating on the issue
    if i found solution will surly post in here

    if some one know abt it please post in here

    anyway thanx a lot for all friends who r responding on this isuue
    Last edited by saratk; April 1st, 2008 at 06:11 AM.

  7. #7
    Join Date
    May 2006
    Location
    Mumbai, India
    Posts
    292

    Re: can some one help me to make check box control transparent

    Hello..

    May be you can try setting the brush type to "NULL_BRUSH". Well I am not so sure about this one.

    To include version 6 common controls in your project , try adding these lines to to stdafx.h file. It works for me..

    Code:
    if defined _M_IX86
    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
    #elif defined _M_IA64
    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
    #elif defined _M_X64
    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
    #else
    #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
    #endif
    Hope that helps...
    All the best..

  8. #8
    Join Date
    Jan 2008
    Posts
    80

    Re: can some one help me to make check box control transparent

    I can make Checkbox transparent on win2k3 but with the same code
    is not working on vista

    I am working on windows vista enterprise
    the same code is not making checkbox control transparent
    can some one help me solving the issue

    and please some one let me know
    how to unutilize version6 common control

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured