Search:

Type: Posts; User: Darklighter

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,073

    Ah right, I forgot about status bars (I was...

    Ah right, I forgot about status bars (I was drawing a filled RECT). I found this function, which does exactly what I want (and is easily adaptable to string tables!)

    Thanks for the help!
  2. Replies
    3
    Views
    1,073

    Tracking the mouse on menu items

    Hello,

    In Solitaire, when you hover over the menu items, a string is displayed at the bottom of the window. I'm trying to recreate this feature in a similar card game of mine, but I can't seem to...
  3. Replies
    2
    Views
    908

    Alright, thanks. I just used this instead: ...

    Alright, thanks. I just used this instead:



    case WM_COMMAND:
    PostMessage(NULL, WM_COMMAND, wParam, lParam);
    break;
  4. Replies
    2
    Views
    908

    Question about WM_COMMAND

    Hello,

    In a small Win32 game of mine, I am passing Windows messages to functions instead of handling them in my WndProc, and it works fine with messages like WM_MOUSEMOVE, but WM_COMMAND doesn't...
  5. Replies
    7
    Views
    1,232

    It works! I had to delete the HRGN using...

    It works! I had to delete the HRGN using DeleteObject() after using it, as specified in the MSDN.

    Thanks for all the help. :)

    Time to texture the ship! :D
  6. Replies
    7
    Views
    1,232

    Alright, here's the updated code: In Globals:...

    Alright, here's the updated code:

    In Globals:


    HGDIOBJ memoryBmp = NULL;


    In Game Initialization Function:
  7. Replies
    7
    Views
    1,232

    Thanks. I'm not too familiar with clipping and...

    Thanks. I'm not too familiar with clipping and regions, but here's what I came up with:

    In Globals:


    HDC memoryDC = NULL;

    HBITMAP asteroidBitmap = LoadBitmap ( GetModuleHandle (...
  8. Replies
    7
    Views
    1,232

    [GDI] Scrolling texture?

    Hello.

    I'm writing a basic Asteroid game in GDI using double buffering. The ship, the background and the asteroids (which are drawn using Polygon()) were initially colored with a solid color...
  9. Thread: colour

    by Darklighter
    Replies
    9
    Views
    1,033

    Or you can use... system ( "color 0C" ); ...

    Or you can use...



    system ( "color 0C" );


    ...with the corresponding digit values:
  10. Replies
    18
    Views
    1,928

    h_howee is right. sizeof ( filename ) would be a...

    h_howee is right. sizeof ( filename ) would be a better choice.

    Or you could do:



    const int size = 80;

    char filename [ size ];
  11. Replies
    0
    Views
    1,474

    Direct3D vs OpenGL Interview

    Hello.

    I'm currently in the process of designing a website about Direct3D and OpenGL for a school project, but I need a short interview from someone with experience in that domain, so I decided to...
  12. Replies
    4
    Views
    1,898

    Ah, thanks. I wasn't aware of that.

    Ah, thanks. I wasn't aware of that.
  13. Replies
    4
    Views
    1,898

    All of my code is in the same file. I searched my...

    All of my code is in the same file. I searched my file, and there's no redefinitions or other variables and functions that have the same name.

    I tried the preprocessor option, but the generated...
  14. Replies
    4
    Views
    1,898

    Macros as functions

    Why isn't this working?

    Macros:



    #define KEYDOWN ( vKey ) ( ( GetAsyncKeyState ( vKey ) & 0x8000 ) ? TRUE : FALSE )
    #define KEYUP ( vKey ) ( ( GetAsyncKeyState ( vKey ) & 0x8000 ) ?...
  15. Replies
    4
    Views
    1,250

    Ah, passing NULL fixed it. Thanks. :)

    Ah, passing NULL fixed it.

    Thanks. :)
  16. Replies
    4
    Views
    1,250

    PeekMessage?

    So I started DirectX programming, and I've learned to use PeekMessage instead of GetMessage, but for some reason the program keeps running in the background when I close it. I have searched the...
  17. Replies
    2
    Views
    1,770

    Welcome. :)

    Welcome. :)
  18. Replies
    2
    Views
    1,252

    Haha, cool. I can spin pens, but I can't...

    Haha, cool.

    I can spin pens, but I can't transfer them from one finger to another. I got used to it spinning drumsticks (I'm a drummer).
  19. Replies
    3
    Views
    1,153

    Create a header file 'resource.h' and include it...

    Create a header file 'resource.h' and include it in main.cpp like so:



    #include "resource.h"


    Then, in your header, #define IDD_ABOUT and ID_HELP_ABOUT like so:
  20. Replies
    3
    Views
    1,397

    That worked fine. Thanks! This is my code (I...

    That worked fine. Thanks!

    This is my code (I found this clearer than InflateRect):



    RECT rc;
    HBRUSH fillColor = CreateSolidBrush ( RGB ( 0, 255, 0 ) );

    GetClientRect ( hWnd, &rc );
  21. Replies
    3
    Views
    1,397

    GDI Rectangles

    So I started messing around with GDI, and I created this magnificent piece of art. The green rectangle is supposed to be located at 10 pixels from the borders at all sides. Here's my code for the...
  22. Replies
    11
    Views
    1,131

    Indentation means proper alignment and spacing,...

    Indentation means proper alignment and spacing, as so:



    #include <iostream>
    using namespace std;

    int main ()
    {
    bool x;
  23. Replies
    33
    Views
    2,696

    I find the Win32 API interesting and gratifying....

    I find the Win32 API interesting and gratifying. I'm far from having mastered C++, but I feel like learning Win32 at the same time is a good change from the not-pretty-looking console programs.
  24. Replies
    37
    Views
    2,731

    Poll: Cable, 11 Mbps.

    Cable, 11 Mbps.
  25. I changed the value of DbgJITDebugLaunchSetting...

    I changed the value of DbgJITDebugLaunchSetting to 1, but the JIT debugger still pops up whenever I open IE7. Would it be possible to uninstall the JIT debugger instead?

    Why would the browser...
Results 1 to 25 of 44
Page 1 of 2 1 2