Thanks. I finally got double buffering to work. I need to rest now, my eyes are swelling due to lack of rest and being too much infront of computer. Haha I will rewrite the drawing code and post them...
Type: Posts; User: Prads
Thanks. I finally got double buffering to work. I need to rest now, my eyes are swelling due to lack of rest and being too much infront of computer. Haha I will rewrite the drawing code and post them...
Amen.
Oh! I'll post some of my code. I have a draw class which has a virtual function called drawFunc(HWND hwnd) which basically draws the object on Window. There are three base class:
class...
Hmmm.. If you're asking whether or not it deals with WM_PAINT. Nope it doesn't. I know after window is minimized WM_PAINT message is sent. If I knew which messege is sent before window is minimized...
I am making a simple drawing program using GDI and Win32 API. It lets user to draw shapes, text etc on Window. Problem is, when window is minimized, everything that was drawn is gone. I have searched...
I am so sorry I posted the thread in wrong place. Won't happen again. :)
Yeah, I think I will create a new handle. Thanks!
Hmmm.... then I will make a handle myself like this: HWND dlgHandle = CreateWindow(...) and then use that handle with SendMessage() function to change font.
If there are any other way, please tell...
Ok, I defined IDC_STATIC in my resource.h file like this:
#define IDC_STATIC -1
Then I created a dialog box, and at runtime, I have created bunch of controls. Here's a sample code:
...
YAYYYY! GetPixel function worked like a charm. :) :) :)
Mods can lock this topic. lol
If you want simple encryption, then replace each alphabets with some other alphabets or symbol, like a = @@#, b = @#@ etc and then store it. Then when you decrypt it, just reverse the process... ?
Hello, I am making this small paint program in C++ using Win32 API and GDI. So far I am able to use GDI to paint on window.
I want to allow user to pick color from window, just like 'Pick Color'...