Type: Posts; User: Apoch
Search took 0.01 seconds.
November 20th, 2003, 09:35 PM
Delete your .ncb, .clw, .opt, and .plg files, then do a full rebuild of your project.
November 20th, 2003, 03:41 PM
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...
November 20th, 2003, 03:07 PM
Have you tried completely rebuilding the solution? (i.e. Clean Solution, Build Solution)
November 20th, 2003, 03:02 PM
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.
November 20th, 2003, 02:56 PM
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?
November 20th, 2003, 02:34 PM
How are you getting the hWnd, and where is this code?
November 19th, 2003, 09:02 PM
Interesting... learn something new every day :)
November 19th, 2003, 06:48 PM
Yes, but ::LoadImage only applies to bitmaps which are already in the app's resource table.
November 19th, 2003, 06:39 PM
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,...
November 19th, 2003, 06:34 PM
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) <...
November 18th, 2003, 02:54 PM
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...
November 17th, 2003, 11:58 PM
Yeah, this is a REALLY good one. You should try it out sometime.
November 17th, 2003, 07:15 PM
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...
November 17th, 2003, 05:33 PM
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...
November 17th, 2003, 05:30 PM
The text I gave you is called a registry key. It represents an entry in the registry.
Open each folder in the list (Software\Microsoft\etc.)
When you get...
November 17th, 2003, 05:20 PM
According to MSDN, calling DestroyWindow() will destroy all children first, then the parent window.
November 17th, 2003, 05:11 PM
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...
November 17th, 2003, 05:07 PM
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?
November 17th, 2003, 05:05 PM
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...
November 17th, 2003, 05:02 PM
Just add a key there and put in your program, it should start up on boot.
November 17th, 2003, 04:51 PM
I'm not sure what you're trying to do. Could you describe it in a bit more detail? Thanks!
November 17th, 2003, 12:03 PM
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...
November 17th, 2003, 12:00 PM
You're right... wasn't thinking :)
November 17th, 2003, 10:59 AM
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...
November 17th, 2003, 10:46 AM
Have a look at the Shell_NotifyIcon() API
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!