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.06 seconds.

  1. Replies
    8
    Views
    184

    Re: c++ - win32 - my image class

    #include "cambalinho.h"

    form a;//the form is created and showed

    button g,b;//the buttons are created and showed

    class image
    {
    private:
    HDC hdcimage=NULL;
  2. Replies
    8
    Views
    184

    Re: c++ - win32 - my image class

    i did these test:

    hdcimage = CreateCompatibleDC(NULL);
    if(hdcimage==NULL)
    MessageBox(NULL,"no HDC","error",MB_OK);
    hicon = (HICON)LoadImage(NULL,...
  3. Replies
    8
    Views
    184

    Re: c++ - win32 - my image class

    sorry i used both and i don't get the icon.
    heres the class image:

    class image
    {
    private:
    HDC hdcimage=NULL;

    BITMAP bm;
    HBITMAP himage;
  4. Replies
    8
    Views
    184

    c++ - win32 - my image class

    i'm trying load and draw an icon with a memory DC... but i'm not getting results :(


    HDC hdcimage=NULL;
    HICON hicon;
    HICON hiconimage;
    hiconimage =...
  5. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    just test yourself:
    1 - put the form transparent;
    2 - now maximize the form;
    3 - can you click:
    - on close button?('X');
    - on icon menu?;
    - and the...
  6. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    for finish, i have 1 question: why, when i maximizate the form, i lose the caption bar and borders actions?(like resize the caption menu and that 3 buttons on form)
  7. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    now i found the error:

    property<color> BackColor
    {
    Get(color)
    {
    return clrBackColor;
    },
    Set(color clrColor)
    ...
  8. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    before i could change the backcolor with these code:

    SetClassLongPtr(hwnd,GCLP_HBRBACKGROUND, (LONG)CreateSolidBrush(clrBackColor));
    now i only recive the black color and not red\green :(
    why...
  9. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    now i understand why, when i create the form with WS_EX_LAYERED, i get the form invisible ;)
    by defauld, the opacy is '0'(zero).. so i did these:

    hwnd = CreateWindowEx(WS_EX_APPWINDOW |...
  10. Replies
    8
    Views
    296

    Re: c++ - how can i do a transparent form?

    true.. thanks for correct me:

    hwnd = CreateWindowEx(WS_EX_OVERLAPPEDWINDOW, classname, strCaption.c_str(), WS_OVERLAPPEDWINDOW|CS_HREDRAW | CS_VREDRAW,
    ...
  11. Re: c++ 11 - can i override functions without re-declare them?

    i'm trying do a sample:

    #include <iostream>
    #include <string>
    #include <functional>

    using namespace std;

    typedef std::function<void(void)> OnSomethingHandler;
    class test
  12. Re: c++ 11 - can i override functions without re-declare them?

    now imagine that i want change the lambda value in Global Scope section(outside of functions\class's\others)?
  13. Replies
    8
    Views
    296

    c++ - how can i do a transparent form?

    i continue with problems for make the form transparent :(
    see these code:

    SetWindowLong(hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
    ...
  14. c++ 11 - can i override functions without re-declare them?

    see these sample:

    #include <iostream>
    #include <string>

    using namespace std;

    class test
    {
    public:
  15. Replies
    22
    Views
    1,177

    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;
    ...
  16. Replies
    45
    Views
    1,052

    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|
    ...
  17. Replies
    22
    Views
    1,177

    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:
    -...
  18. Replies
    22
    Views
    1,177

    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.
    ...
  19. Replies
    22
    Views
    1,177

    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...
  20. Replies
    22
    Views
    1,177

    Re: [win32] - about joystick

    see what i'm doing with joystick:

    else if(wParam==JoystickTimer)
    {
    JOYINFOEX b;
    b.dwSize=sizeof(JOYINFOEX );
    ...
  21. Replies
    22
    Views
    1,177

    Re: [win32] - about joystick

    i did these:


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

    joyGetPosEx(JOYSTICKID1,&b);
    ...
  22. Replies
    22
    Views
    1,177

    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
  23. Replies
    22
    Views
    1,177

    Re: [win32] - about joystick

    Thanks for all
  24. Replies
    22
    Views
    1,177

    Re: [win32] - about joystick

    works fine thanks.... i'm sorry, but that line can be simplificated?
  25. Replies
    22
    Views
    1,177

    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)
    ...
Results 1 to 25 of 642
Page 1 of 26 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center