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

Search:

Type: Posts; User: Cambalinho

Page 1 of 26 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    i need more advices:
    1 - how can i change these loop for detect the joystick by ID?

    īlse if(wParam==JoystickTimer)
    {
    JOYINFOEX b;
    ...
  2. Replies
    13
    Views
    445

    Re: Window help (ignore previous thread)

    heres how you can change the control position without change the control size:


    SetWindowPos(hwnd, 0,intLeft, intTop, 0, 0,
    SWP_NOZORDER| SWP_NOSIZE|SWP_NOACTIVATE|
    ...
  3. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    now i found what i was looking for: Joystick Layout ;)
    32833
    isn't a complete layout.. maybe i can find more about the others ;)
    but i need ask 1 thing from image and what i used from joystick:
    -...
  4. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    thanks to both.. i had tested the dwYpos and dwXpos, but i can't test the others :(
    maybe because my joystick don't have them. but see what MSDN says:

    dwZpos Current Z-coordinate.
    ...
  5. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    the type is DWORD and that values was found with a VB6 code. but if isn't right, please tell me.
    i use that line for see the joystick directions...
    the MSDN is limited:
    "
    dwXpos Current...
  6. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    see what i'm doing with joystick:

    else if(wParam==JoystickTimer)
    {
    JOYINFOEX b;
    b.dwSize=sizeof(JOYINFOEX );
    ...
  7. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    i did these:


    JOYINFOEX b;
    b.dwSize=sizeof(JOYINFOEX );
    b.dwFlags=JOY_RETURNALL;

    joyGetPosEx(JOYSTICKID1,&b);
    ...
  8. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    sorry, but can i do something like these:
    if(buttons==(JOY_BUTTON1 | JOY_BUTTON2))
    //do something
    ???
    i mean convert the b.dwButtons to buttons
  9. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    Thanks for all
  10. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    works fine thanks.... i'm sorry, but that line can be simplificated?
  11. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    sorry... you have right... the JOYINFOEX.dwButtons it's a bit buttons ;)
    let me ask: how can i combine the buttons?

    if(b.dwButtons==JOY_BUTTON1 & JOY_BUTTON2)
    ...
  12. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    please see my last post
  13. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    more easy than i thot:

    long lngButton=0;

    if (b.dwButtons!=0)
    {
    lngButton = log2(b.dwButtons);
    ...
  14. Replies
    22
    Views
    821

    Re: [win32] - about joystick

    i know the 2^x=buttonvalue, but i want to know the x. i forget some math... but i'm read more.
    the lngButton is long
  15. Replies
    22
    Views
    821

    [win32] - about joystick

    i'm trying calculate the button selection... i'm mean using 1,2,3,4,5,6,7....
    what isn't right with these calculation:

    lngButton = (log(b.dwButtons) / log(2)) + 1;
    some numbers are the same with...
  16. Replies
    9
    Views
    310

    Re: the timer isn't created :(

    you have right in both situations.. thanks for all
    now it's working.
    thanks for all.. thank you
  17. Replies
    9
    Views
    310

    Re: the timer isn't created :(

    yes..

    static LRESULT CALLBACK WndProcForm(HWND HandleWindow, UINT msg, WPARAM wParam, LPARAM lParam)
    {
    static POINT PreviousLocation, Location;
    static bool...
  18. Replies
    9
    Views
    310

    Re: the timer isn't created :(

    in form window procedure:

    case WM_TIMER:
    {
    if (wParam == timerid)//for mouse stoped and it's working normaly
    {
    ...
  19. Replies
    9
    Views
    310

    Re: the timer isn't created :(

    sorry about that. but it's the same of inst->hwnd
  20. Replies
    9
    Views
    310

    Re: the timer isn't created :(

    see the GetlastError():

    case WM_LBUTTONUP:
    case WM_RBUTTONUP:
    case WM_MBUTTONUP:
    case WM_XBUTTONUP:
    {
    ...
  21. Replies
    9
    Views
    310

    [RESOLVED] the timer isn't created :(

    see these code:

    case WM_LBUTTONUP:
    case WM_RBUTTONUP:
    case WM_MBUTTONUP:
    case WM_XBUTTONUP:
    {
    int a=...
  22. Replies
    5
    Views
    4,597

    Re: [win32] - creating the form super class

    i didn't show all the class, because it's very big.
    the SetProp/GetProp are API functions
  23. Replies
    5
    Views
    4,597

    Re: [win32] - creating the form super class

    hello 2kaud thanks for answer me.
    "You can't set a window property until the window has been created in the following line! You also should test RegistrClassEX() and SetProp() for return...
  24. Replies
    5
    Views
    4,597

    [win32] - creating the form super class

    i'm trying build the form super class without sucess :(

    i can't get the old procedure :(

    void setParent(HWND parent=GetDesktopWindow())
    {
    WNDCLASSEX FormClass;
    ...
  25. Re: [win32] - how can i call the WM_DRAWITEM message?

    heres what i did:


    if(KeyPressed(VK_MENU)==true) SendMessage(hButton,WM_DRAWITEM,GetDlgCtrlID(hButton),MAKEWPARAM(GetDlgCtrlID(hButton),BN_PUSHED));

    but isn't working :(
    please tell me more
Results 1 to 25 of 628
Page 1 of 26 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center