Search:

Type: Posts; User: nutzu2010

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. you mean this? "I would write functions and put...

    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...
  2. Gdi questions(how much is available on object into a device contex?)

    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...
  3. Replies
    2
    Views
    841

    So,to create a binary search tree must declare a...

    So,to create a binary search tree must declare a static node or return the node new created like this?
  4. Replies
    2
    Views
    841

    Set a value to a pointer in a function

    int main()
    {
    int *f;
    set(f);
    printf("%d",*f);
    return 0;
    }
    void set(int *f)
    {
    int d=11;
  5. Replies
    1
    Views
    2,099

    How change the bmp bits data?

    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>
    ...
  6. Replies
    2
    Views
    1,912

    aaaa...I thought something was wrong in my...

    aaaa...I thought something was wrong in my code.I'll read about it(RLE).
  7. Replies
    2
    Views
    1,912

    Image(bitmap) larger size than the initial

    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...
  8. I want to see if I understand. In WM_DESTROY...

    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);...
  9. Sorry for mistake(But I had another important...

    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...
  10. i have made a simple exemple,but does not work: ...

    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...
  11. How do i draw something(a ellipse) when mouse is over a point?

    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(...
  12. Replies
    11
    Views
    1,907

    I'm sorry that I not posted earlier.Meanwhile I...

    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.
    ...
  13. Replies
    11
    Views
    1,907

    I don't quite understand "When the left mouse...

    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...
  14. Replies
    11
    Views
    1,907

    I don't think I explained well.I know to draw a...

    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;
  15. Replies
    11
    Views
    1,907

    Ok,I understood,and what functions should be used...

    Ok,I understood,and what functions should be used to redisplay the drawing?
  16. Replies
    11
    Views
    1,907

    oh,sorry...i wanna show my drawing when the...

    oh,sorry...i wanna show my drawing when the window is about to be shown.Should not put code in WM_PAINT?
  17. Replies
    11
    Views
    1,907

    Redraw contents after minimize

    this is the code:


    #include <windows.h>

    const char g_szClassName[] = "myWindowClass";

    HDC desen=NULL;
    PAINTSTRUCT ps;
  18. Replies
    9
    Views
    12,926

    hDialog-handle for a dialog then How do you get...

    hDialog-handle for a dialog then How do you get the handle for a dialog?is his id number?
  19. Replies
    9
    Views
    12,926

    so if id of text box is IDC_EDIT1 ,function call...

    so if id of text box is IDC_EDIT1 ,function call is GetWindowText(IDC_EDIT1,name,sizeof(name)) ?

    char name[20];
  20. Thread: Pointer

    by nutzu2010
    Replies
    4
    Views
    957

    ptr1=ptr2;

    ptr1=ptr2;
  21. Thread: Windows GUI

    by nutzu2010
    Replies
    49
    Views
    6,690

    I do not have questions. I still have time to...

    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
  22. Thread: Windows GUI

    by nutzu2010
    Replies
    49
    Views
    6,690

    I thought that only works with an " .exe" on more...

    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...
  23. Thread: Windows GUI

    by nutzu2010
    Replies
    49
    Views
    6,690

    yes, that's what I said then,why use the term...

    yes, that's what I said

    then,why use the term cross platform?(beginner question)
  24. Thread: Windows GUI

    by nutzu2010
    Replies
    49
    Views
    6,690

    I don't know what to think...I understand why...

    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...
  25. Thread: Windows GUI

    by nutzu2010
    Replies
    49
    Views
    6,690

    yes,is a good idea, but I do not know many things...

    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...
Results 1 to 25 of 71
Page 1 of 3 1 2 3