Create shaped forms with C++
Results 1 to 6 of 6

Thread: Create shaped forms with C++

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Posts
    166

    Create shaped forms with C++

    Hello,
    I searched the forums and google, but didn't find anything. Ok here is my problem: I have seen that some programs use for their screens different bitmaps. I suppose that the button clicks can be handled by the mouse coords, but how they do it with editbox, memos, grids and all of these stuffs?
    BGDevS
    [gloworange]www.peaksoft.info [/gloworange]

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Posts
    557
    Hi

    I have no idea what you are talking about, so I assume you refer to
    windows forms objects, like buttons, datagridviews, ..., which seem
    to be customised by the developer?

    That can be easily done by creating your own controls. Instead of
    implementing all the handlers yourself, you have the possibility to
    inherit from the windows forms objects thus having available all
    that management functionality.


    Cheers
    If the only tool you have is a hammer, you tend to see every problem as a nail.
    (Abraham Maslow, Psychologist, 1908-70)

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Posts
    166
    No, no, no.
    I talking about something else. It is a bitmap that is the form shape with buttons, grids and all other used controls and when I open the program it looks like the picture. Hicap DVR software uses this technology. It has different pictures for different screens.
    BGDevS
    [gloworange]www.peaksoft.info [/gloworange]

  4. #4
    Senior Member
    Join Date
    Mar 2004
    Posts
    557
    Hi

    Although not all programs are using the same framework it is likely
    that also Hicap DVR software implements its own form-control,
    which is also a windows forms control, by inheriting from the base
    form control.

    Example:
    Start Windows Media Player - What you see is that the "screen" (or
    form, if I understand you correctly) has a different shape than the
    usual forms. This can be done by inheriting from windows.forms.form
    and customising (overriding, shadowing) certain properties.

    Hope this helps. We are talking Windows, are we?

    Cheers
    Last edited by sec_ware; October 17th, 2007 at 10:28 PM.
    If the only tool you have is a hammer, you tend to see every problem as a nail.
    (Abraham Maslow, Psychologist, 1908-70)

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Posts
    166
    Yes, something similar. But what they do exactly is that they draw their screen with all controls and use this picture as the screen for their program. May be I can't explain exactly my problem, but I am trying
    BGDevS
    [gloworange]www.peaksoft.info [/gloworange]

  6. #6
    Senior Member
    Join Date
    Dec 2001
    Posts
    319
    They use alpha transparency. I could probably find some documentation backing this up, if you're really that interested.

Similar Threads

  1. Investigating Malware in action
    By Tiger Shark in forum The Security Tutorials Forum
    Replies: 4
    Last Post: March 24th, 2005, 08:45 AM
  2. The history of the Mac line of Operating systems
    By gore in forum Operating Systems
    Replies: 3
    Last Post: March 7th, 2004, 08:02 AM
  3. Tcp/ip
    By gore in forum Newbie Security Questions
    Replies: 11
    Last Post: December 29th, 2003, 08:01 AM
  4. Playing with Windows
    By gizmofreak in forum AntiOnline's General Chit Chat
    Replies: 2
    Last Post: December 7th, 2003, 06:43 PM
  5. Replies: 1
    Last Post: July 15th, 2002, 04:46 AM

Posting Permissions

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