CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Sevko

Search: Search took 0.05 seconds.

  1. Replies
    0
    Views
    1,043

    Directx3D Draw Sprite using RECT problem

    Hello everyone.

    I'm trying to make a minesweeper program using directx9 and to draw different squares i'm using sprites so i wouldn't need a different texture for different types of squares.

    I...
  2. Replies
    3
    Views
    2,369

    Re: Window won't repaint

    Maybe I haven't made myself clear enough. The program works fine create calls start start initilizes all the variables and animal positions and then the board paints. And everything works ok you hit...
  3. Replies
    3
    Views
    2,369

    Window won't repaint

    Hi, for School work we got to do a retarded game and I'm nearly finished with the gameplay then it's on to improving the code. But the problem is with the CheckStatus function. If I put it in the end...
  4. Replies
    3
    Views
    941

    Re: Subclassing a button

    Thanks it works now, but I found out about BCM_SETIMAGELIST so the whole mouse track to change buttons on hover was a bad idea. If any 1 happens to know how to use ImageList_Create and Add without: ...
  5. Replies
    3
    Views
    941

    Subclassing a button

    I uploaded the Main.cpp. I tried to subclass a button but after
    OldButtonProcedure = (WNDPROC)SetWindowLongPtr(hButton, GWLP_WNDPROC, (LONG_PTR)ButtonProcedure);
    the button dissapears. What is...
  6. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    Re: LoadImage()

    resolved
  7. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    Re: LoadImage()

    the loadimage returned 0, because it worked, the problem was in the picture itself when i used another one it worked
  8. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    Re: LoadImage()

    I used the GetLastError right after the LoadImage function.
    The value of get last error is: 0 The operation completed successfully.
    So I don't know what's wrong I guess i can't use the getlasterror...
  9. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    Re: LoadImage()

    I have to translate what it says, but it's something like this:
    Failed with error 0: Operation was successfully finished.

    and by still doesn't I mean there is no image over the button like it is...
  10. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    Re: LoadImage()

    this works

    HBITMAP hbmp = (HBITMAP)LoadImage(NULL, MAKEINTRESOURCE(OBM_LFARROWD), IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE);

    but this still doesn't(I put the image to c just for fun)

    HBITMAP hbmp...
  11. Thread: LoadImage()

    by Sevko
    Replies
    12
    Views
    2,701

    LoadImage()

    I'm trying to set the button an image like this:



    HBITMAP hbmp = (HBITMAP)LoadImage(GetModuleHandle(NULL), (LPCTSTR)"Button.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_DEFAULTSIZE);
    if(hbmp...
  12. Thread: Code works funny

    by Sevko
    Replies
    3
    Views
    677

    Re: Code works funny

    OMG I didn't see that thank you, my compiler didn't even give me any warnings and I'm gonna Improve the code as soon as the program is good and working.
  13. Thread: Code works funny

    by Sevko
    Replies
    3
    Views
    677

    Code works funny

    I have a little problem I'm trying to make a TicTacToe program in winapi. I'm at the part where i'm writing the code if you try to select an area where an x or o is already set. The problem is that...
Results 1 to 13 of 13





Click Here to Expand Forum to Full Width

Featured