Help getting desktop handle
Hello everyone,
Could someone please help me get started with how I might go about placing text on the actual windows desktop in my form project using c++ and make it stay there and not be covered up by any other windows that might get opened. As a starting point I've tried using code like this just to get the required handles.
HDC hdcScreen;
HDC hdcCompatible;
hdcScreen = CreateDC(TEXT("DISPLAY"), NULL, NULL, NULL);
hdcCompatible = CreateCompatibleDC(hdcScreen);
But when ever I run this with the debugger my variable have values of this;
hdcCompatible {HDC__} { unused=<undefined value> } HDC__*
hdcScreen {HDC__} { unused=<undefined value> } HDC__*
I'm am assuming these variables don't have valid values (as I'm new to 2003 .net programming). Am I at least in the right area for doing this or should I maybe looking for another way.
Thank you
|