Results 1 to 7 of 7

Thread: Using BitBlt with laters

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Question Using BITBLT with Layers

    Hi,

    I'm using the BITBLT and it works fine, except whena nother window is on top of the window doing the BITBLT-ing, and its really frustrating me......

    Any help guys?

    And how about CAPTUREBLT?

    DocZaf
    {;->
    I use win 95 and captureblt is win98/2000

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Arrow

    What window is on top on what one? Explain more. Are you doing anything with windows outside your app?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Yep,
    With windows outside my app,
    Am trying to send biblt to another app,
    Not too worried about that, as i can come back to it later, and now need to sendmessage to other window using messaging (hooks) but am new to it all.

    I want to send text to the start button, but when i send it, it replaces the window caption (which is not visible) and not the text on the start button itself.

    I was wondering how do i find the button control in the window (by that i mean get its wnd and not the windows)

    perplexed
    Zaf Khan



  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well the DC's for another apps, really frustrates me too, they don't autoredraw at all.
    Ok, about sending text to startbutton; you need to find the child window of the startmenu by passing a function's addres with EnumChildWindows where you can put it to recongnize the startbutton.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Do you mean you're trying to alter the appearence of the windows start button at the bottom left of the screen, if so don't do it that way, there's probably a bitmap somewhere on the HD that tells it what to load.

    or are you trying to change the text on a command button in another app, if so get the buttons hwnd and use SetWindowText to change the text.

    Hope this helps.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi guys and thanks for the advice, i'm at a loss for which one to try:

    Firstly, I've changed the text and bitmap the bitmap is animated and its fine no matter which window is on top, but no as i'm using a differnet method than bitblt i need to sendmessage / post message to change the text, but when i do, it changes the caption for the start button window and not the button itself (I guess i need the child - as kedaman says) and could really do with some code if that not asking for too much guys......

    Plus am not trapping for events yet too, as if something is added or removed from systary does not resize. and only works with taskbar at bottom not with taskbar left/right/top aligned.

    Lost a lot of files when installed new drive, could not find drive imaging software and the one i d/loaded kept formatting in linux partition not fat 32, eneded up reinstalling and ultimately lost a few files
    :-(

    Doc Zaf
    {;->


    Want to see it (what i got so far) - mail me

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Angry

    Hi again,

    I tried the EnumChildWindow and it failed as there were no child windows

    I tried the SendMessage and it sent the message to the Start Button window and not to the button

    I tried the SetWindowText and it failed

    Any other ideas guy's?

    Or better still a few lines of code?

    DocZaf
    {;->

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