you mean this?
"I would write functions and put all the code in it.
Pass in any params you need (HWND, LPARAM, WPARAM etc)"
Yes,I keep in mind that but this is a small exemple.
"It did not have...
Type: Posts; User: nutzu2010
you mean this?
"I would write functions and put all the code in it.
Pass in any params you need (HWND, LPARAM, WPARAM etc)"
Yes,I keep in mind that but this is a small exemple.
"It did not have...
1.how much is available on object into a device contex?
i create a pen and select into a device contex(in WM_PANIT) but it draw a line red, only in wm_paint.why this pen is not remain select?i must...
So,to create a binary search tree must declare a static node or return the node new created like this?
int main()
{
int *f;
set(f);
printf("%d",*f);
return 0;
}
void set(int *f)
{
int d=11;
I wanna to change the bmp bits data,but i receive an-"don't send/send error report" wenn i save the bmp file.
In my code i use this and this.
#include <windows.h>
#include <stdlib.h>
...
aaaa...I thought something was wrong in my code.I'll read about it(RLE).
I have load a bitmap from a file(image has 2.25 MB) and later save bitmap(it has 3 MB)...why?
I use this code.
#include <windows.h>
#include <stdlib.h>
PBITMAPINFO...
I want to see if I understand.
In WM_DESTROY must added:
SelectObject(image_dc,hfFontOld);
SelectObject(image_dc, old_hbitmap);
DeleteObject(hfFontDefault);
DeleteObject(bmTest);...
Sorry for mistake(But I had another important mistake,unreported by the compiler).I changed too much code and forgot to convert points to point.
I thought I about it and will take into...
i have made a simple exemple,but does not work:
case WM_MOUSEMOVE:
{
hdc = GetDC(hwndMain);
SetRect(&rcClient,(long)100,(long)100,(long)120,(long)120);
if...
Ex.:I have drawn a line and i want to move in another position.For an easier move, when the mouse is over point line(begin or end,no matter what) I would want draw a ellipse.
Must use BOOL PtInRect(...
I'm sorry that I not posted earlier.Meanwhile I found your explanation and a code.In combination with Drawing Lines with the Mouse i can draw lines with mouse and the line remain after a minimise.
...
I don't quite understand
"When the left mouse button is pressed you erase the memory HDC."
Why do I need to put more DeleteDc() than CreateCompatibleDC() ?
#include <windows.h>
const char...
I don't think I explained well.I know to draw a line:
#include <windows.h>
const char g_szClassName[] = "myWindowClass";
HDC desen=NULL;
PAINTSTRUCT ps;
Ok,I understood,and what functions should be used to redisplay the drawing?
oh,sorry...i wanna show my drawing when the window is about to be shown.Should not put code in WM_PAINT?
this is the code:
#include <windows.h>
const char g_szClassName[] = "myWindowClass";
HDC desen=NULL;
PAINTSTRUCT ps;
hDialog-handle for a dialog then How do you get the handle for a dialog?is his id number?
so if id of text box is IDC_EDIT1 ,function call is GetWindowText(IDC_EDIT1,name,sizeof(name)) ?
char name[20];
ptr1=ptr2;
I do not have questions.
I still have time to think to a library for GUI.
Yes, it's good.i'll take into account
I thought that only works with an " .exe" on more systems
now I know what it means "cross platform" ,really
you need to have a virtual machine for compile the code,right?
and then ,Why take up...
yes, that's what I said
then,why use the term cross platform?(beginner question)
I don't know what to think...I understand why they are good(Qt,GTK because they are cross-platform)...and WinApi uses less memory...
but many companies do multiple versions (for...
yes,is a good idea, but I do not know many things in C++(Object-oriented programming,Classes,and many things)
LE.:Thanks for all your help,and thank you @CommonTater,because you have fought with...