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

Search:

Type: Posts; User: william3711

Search: Search took 0.04 seconds.

  1. Replies
    5
    Views
    14,657

    Re: Keeping Dialog Button Selected

    Very true I agree with you 100% on that. Looking into radio buttons I found in resedit there is a act like a push button option that makes it look like a push button but still work as a radio button....
  2. Replies
    5
    Views
    14,657

    Re: Keeping Dialog Button Selected

    Yeah at first but I didn't really like the look but so far that seems like the best option right now? I could make a dialog box with CreateWindowEX than I could probably set the buttons I create a...
  3. Replies
    5
    Views
    14,657

    Keeping Dialog Button Selected

    I am writing a program in Visual Studios 2012 Express edition I created a Dialog Box using ResEdit that looks like this

    31737




    I want to make it so when I select the A Button button it...
  4. Replies
    1
    Views
    1,395

    Moving mouse position

    I am writing a program to map keyboard and mouse to an xbox 360 controller with win32 and xinput. I have everything going fine but when im trying to control the mouse with the thumbsticks I get...
  5. Replies
    2
    Views
    4,375

    Xinput controller state problem

    I am making a mapper program for the 360 controller using XInput I am using SendInput to send keypresses to games


    if(controller1->GetState().Gamepad.wButtons & XINPUT_GAMEPAD_B)
    {

    ...
  6. Replies
    7
    Views
    9,785

    Re: Popup menus SubMenus overlapping

    I did change all the identifiers and I have the same problem but only when the menu is over the controller sprite oddly enough.
  7. using SendInput to control mouse for games

    Hello, I am making a program to map keys and mouse input to 360 controller using XInput I have the keys working fine with SendInput my problem comes from when I try to control the mouse pointer with...
  8. Replies
    7
    Views
    9,785

    Re: Popup menus SubMenus overlapping

    Would either of them be the reason the windows are overlapping
  9. Replies
    7
    Views
    9,785

    Re: Popup menus SubMenus overlapping

    They are all set to zero because I haven't gotten around to that yet I just learned how to create popup menus and submenus and I was testing out how it worked and I noticed the submenus overlapping...
  10. Replies
    7
    Views
    9,785

    Popup menus SubMenus overlapping

    I am writing a program in c++ with the Win32 API I created a popup menu with multiple submenus the submenus open up fine but when I open one and go to another they just overlap each other
    Heres a...
  11. Replies
    2
    Views
    2,077

    Custom Command id's for WM_COMMAND

    I want to know if it is possible to define a custom command to be sent to WM_COMMAND in the window procedure. For instance I made a toolbar and buttons are created with TBBUTTONS each one has a id...
  12. Replies
    2
    Views
    4,437

    Re: Rebar not visible

    I figured it out it was
    REBARBANDINFO rbBand = { sizeof(REBARBANDINFO) };

    the msdn example I followed stated to do it this way but it is older code and someone stated it has to be done like...
  13. Replies
    2
    Views
    4,437

    Rebar not visible

    I am making a paint program and I created a toolbar with my own images that works fine but I tried adding a rebar to it everything compiles fine but only the toolbar shows up not the rebar.


    ...
  14. Re: Problem with LoadBitmap using MAKEINTRESOURCE

    Sorry there was more to that function then what I put in the post I just thought that was where the issue was. I used this function to create a DIBSection from a file


    HRESULT...
  15. Problem with LoadBitmap using MAKEINTRESOURCE

    Im using Visual Studios 2012 using c++ I have been trying to load a bitmap from my resources
    Like this


    HRESULT DemoApp::CreateDIBFromResource(HWND hWnd, HINSTANCE Instance, LPCWSTR ImageID)...
  16. Replies
    2
    Views
    2,935

    Direct 2d 1.1 access violation Need help

    I am making a program in direct2D 1.1. I keep getting a access violation error when it reaches code
    dxgiDevice->GetAdapter(&dxgiAdapter);

    here is my header file


    #pragma once


    #pragma...
  17. Re: Is it nessecary to display a array of bytes without converting to HBITMAP

    Just tested out loading a drawing a bitmap from file in winMain I

    #include<Windows.h>


    HINSTANCE hAppInst = 0;
    HWND hMainWnd = 0;
    HDC hSpriteDC = 0;
    HBITMAP hBitmap;
  18. Re: Is it nessecary to display a array of bytes without converting to HBITMAP

    Thanks again I am going to switch my code up and use the load image function. And I just read a little about DIB sections and that appears to be exactly what I need being you can access the pixel...
  19. Re: Is it nessecary to display a array of bytes without converting to HBITMAP

    Thanks for the answer I usually use this code

    #include"Sprite.h"
    #include<cassert>
    Sprite::Sprite(HINSTANCE hAppInst, int imageID, int maskID,
    const Vec2& pos, const Vec2& vel)
    {
    mhAppInst...
  20. Is it nessecary to display a array of bytes without converting to HBITMAP

    I followed a tutorial to load a bitmap from file and convert it to a array of bytes to access it directly. Now to display the bitmap on screen do I have to convert it to a HBITMAP or can I display it...
Results 1 to 20 of 20





Click Here to Expand Forum to Full Width

Featured