CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Apoch

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    675

    Delete your .ncb, .clw, .opt, and .plg files,...

    Delete your .ncb, .clw, .opt, and .plg files, then do a full rebuild of your project.
  2. Replies
    13
    Views
    1,560

    Trap the WM_GETFOCUS and WM_KILLFOCUS messages;...

    Trap the WM_GETFOCUS and WM_KILLFOCUS messages; in WM_GETFOCUS, call your transparency code. In WM_KILLFOCUS, call SetWindowLong() and remove the WS_EX_LAYERED flag.


    Or you can call...
  3. Replies
    13
    Views
    1,560

    Have you tried completely rebuilding the...

    Have you tried completely rebuilding the solution? (i.e. Clean Solution, Build Solution)
  4. Replies
    13
    Views
    1,560

    Add this line at the beginning of your OnButton1...

    Add this line at the beginning of your OnButton1 function:

    SetWindowText("Window should now be transparent.");

    and see if the title of the window changes when you click the button.


    Also,...
  5. Replies
    13
    Views
    1,560

    What exactly isn't working about it? I dropped...

    What exactly isn't working about it? I dropped that code in a test project and it works fine...


    Are you sure you're using Windows 2000 or later?
  6. Replies
    13
    Views
    1,560

    How are you getting the hWnd, and where is this...

    How are you getting the hWnd, and where is this code?
  7. Thread: Picture control

    by Apoch
    Replies
    5
    Views
    844

    Interesting... learn something new every day :)

    Interesting... learn something new every day :)
  8. Thread: Picture control

    by Apoch
    Replies
    5
    Views
    844

    Yes, but ::LoadImage only applies to bitmaps...

    Yes, but ::LoadImage only applies to bitmaps which are already in the app's resource table.
  9. Thread: Picture control

    by Apoch
    Replies
    5
    Views
    844

    To use bitmaps at design time, you have to...

    To use bitmaps at design time, you have to include all bitmaps in your resource file, because of how Windows .EXEs work. If you want to load the bitmap at runtime, look into the GDI+ library,...
  10. Replies
    1
    Views
    1,073

    doubles are not precise. Never, ever, ever, ever,...

    doubles are not precise. Never, ever, ever, ever, ever use a precise equality (==) test on a double or a float. Rework the code so you can use a different test; such as:

    if(fabs(d - 100.0) <...
  11. I specifically buy components that are designed...

    I specifically buy components that are designed for high-use server applications, so I don't have to worry. Its a major advantage of building one's own systems. The only computer I ever blew up from...
  12. Replies
    4
    Views
    1,899

    Yeah, this is a REALLY good one. You should try...

    Yeah, this is a REALLY good one. You should try it out sometime.
  13. Replies
    5
    Views
    711

    I think the three big focal points are a constant...

    I think the three big focal points are a constant desire to learn and explore, a highly analytical mind, and a good understanding of how to interact with other people.

    Learning and exploring is...
  14. Replies
    5
    Views
    1,753

    Yes, it should be. If memory serves, I've...

    Yes, it should be. If memory serves, I've actually done that before :) Just don't count on the parent window hanging around long enough to receive and process the message unless you return 0 from...
  15. Replies
    13
    Views
    956

    The text I gave you is called a registry key. It...

    The text I gave you is called a registry key. It represents an entry in the registry.

    Open regedit.exe
    Open HKEY_LOCAL_USER
    Open each folder in the list (Software\Microsoft\etc.)
    When you get...
  16. Replies
    5
    Views
    1,753

    According to MSDN...

    According to MSDN, calling DestroyWindow() will destroy all children first, then the parent window.
  17. Replies
    10
    Views
    1,164

    If your data is guaranteed to be precisely 15...

    If your data is guaranteed to be precisely 15 bytes, then use char arrays, as they make more sense in the solution. Otherwise, always opt for the generic solution and use a pointer to a string...
  18. Replies
    5
    Views
    1,753

    As far as I know MFC ensures that child windows...

    As far as I know MFC ensures that child windows unload before the parent, unless you are doing something "creative" like adding the child window at run time... or am I mistaken about that?
  19. Replies
    2
    Views
    717

    I usually grab a screenshot with Alt+PrntScrn,...

    I usually grab a screenshot with Alt+PrntScrn, paste it into Paint, use the color picker to grab the color, then go to Colors/Edit Colors to get the RGB values. You could probably also write a very...
  20. Replies
    13
    Views
    956

    HKEY_LOCAL_USER\Software\Microsoft\Windows\Current...

    HKEY_LOCAL_USER\Software\Microsoft\Windows\CurrentVersion\Run

    Just add a key there and put in your program, it should start up on boot.
  21. Replies
    13
    Views
    956

    I'm not sure what you're trying to do. Could you...

    I'm not sure what you're trying to do. Could you describe it in a bit more detail? Thanks!
  22. Thread: help

    by Apoch
    Replies
    5
    Views
    718

    That's a difficult problem, as the Internet...

    That's a difficult problem, as the Internet exists to solve this problem, but we can't use it :)

    If you can dial into another computer from the UK server, you should be able to set up a VPN on...
  23. Replies
    6
    Views
    924

    You're right... wasn't thinking :)

    You're right... wasn't thinking :)
  24. Replies
    5
    Views
    728

    I personally went into programming as a...

    I personally went into programming as a free-lancer, mostly because I despise the concept of working for someone else (rather than for lack of job openings), but the principles are the same. I've...
  25. Replies
    13
    Views
    956

    Have a look at the Shell_NotifyIcon() API...

    Have a look at the Shell_NotifyIcon() API
Results 1 to 25 of 44
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured