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 34 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: win32 - why SetTimer isn't working?

    the timer isn't executed with that code. i was changing from WM_PAINT to WM_DRAWITEM messages, that's why.
    but i agree with Igor, like allways, he have right ;)
    but sometimes i don't understand...
  2. Re: win32 - why SetTimer isn't working?

    after several test's i found the problem:

    case WM_PAINT:
    {
    return 0;
    }
    so: how these code can afect the timer?
  3. [RESOLVED] win32 - why SetTimer isn't working?

    i even tryied debug the code. but without sucess :(
    heres my message loop:

    WPARAM MessageLoop()
    {
    MSG msgEvents;
    while(GetMessage(&msgEvents, NULL, 0, 0) > 0)
    {
    if...
  4. Re: why a transparent static don't clean the last image before show the new one?

    now i fail... is like i create a window\form, but been a child
  5. Re: why a transparent static don't clean the last image before show the new one?

    i never did 1(directly). but i think that i get the point ;)
    i must avoid:

    ZeroMemory(&LabelClass, sizeof(WNDCLASS));
    GetClassInfo(mod, TEXT("STATIC"), &LabelClass);
    and create a...
  6. Re: why a transparent static don't clean the last image before show the new one?

    i didn't knew that :(
    maybe i can fix with another idea ;)

    WNDCLASS LabelClass;
    HINSTANCE mod = (HINSTANCE)GetModuleHandle(NULL);

    ZeroMemory(&LabelClass,...
  7. Re: [GDI] - owner draw: how draw it on gray scale?

    what i'm doing wrong with these code?

    void RePaint(bool blackandwhite)
    {
    //clean the hdc
    Gdiplus::Graphics graphics(hdcimage);
    graphics.Clear(clrBackColor);

    ...
  8. why a transparent static don't clean the last image before show the new one?

    finally i have a static control transparent:

    //window creation:
    hwnd = CreateWindowEx(0, classname, strCaption.c_str(),WS_OVERLAPPEDWINDOW | WS_TABSTOP,
    ...
  9. Re: [GDI] - owner draw: how draw it on gray scale?

    i'm so sorry, but can you please give me a sample of DIB's?
  10. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    now i have seen what you mean... sorry about that. my condition was incompleted :(
    sorry about that
  11. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    i fix that too ;)
    i'm, allways, using string with my functions.

    char GettingAltKey(string text)
    {
    char altkey=-1;//defauld result
    int textlenght=text.length()-1;
    for(int i=0;...
  12. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    out off-topic: sorry, but i can't rate you all. i liked rate you all, but the forum rules don't let me :(
    Moderator: i don't understand how works the these forum, but, please, think about the rate...
  13. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    i must say it: thank you. you have seen what i never thot ;)
    heres the function corrected:

    char GettingAltKey(string text)
    {
    char altkey;
    int textlenght=text.length()-1;
    for(int...
  14. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    the settext function:

    void setText(string text)
    {
    strCaption=text;
    altkey=GettingAltKey(strCaption);
    UnregisterHotKey(hwnd,altmessage);
    ...
  15. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    1419 - Hot key is not registered.

    button constructor:

    static int ButtonCount;//outside the class is zero
    char GettingAltKey(string text)
    {
    char altkey;
    for(int i=0;...
  16. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    1419 - Hot key is not registered.
    like i told you: on 1st works fine
  17. Replies
    16
    Views
    617

    Re: RegisterHotKey() is limited?

    i'm sorry... did i miss something from that?
    i'm using a diferent ID and HWND for every regist hot key.
  18. Replies
    16
    Views
    617

    [RESOLVED] RegisterHotKey() is limited?

    the RegisterHotKey() is limited?
    everytime a button is created is use RegisterHotKey(). but use a diferent HWND and ID. but only works with 1st button. so why these happens?
  19. Re: [RESOLVED] how can i send messages between the parent window proc to child window

    sorry i use windows 7, but i get the point ;)
    thanks for all to all
  20. Re: [RESOLVED] how can i send messages between the parent window proc to child window

    i can't use the macro TRACE on code blocks. but thanks to you i learned how see the variables(on debuger): https://www.youtube.com/watch?v=Jab1qj_QR8s
    (i hope you don't be mad with me because of...
  21. Re: how can i send messages between the parent window proc to child window proc?

    i did several tests with a message box.
    but i fix it:

    case WM_DRAWITEM:
    {
    DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam;
    ...
  22. [GDI] - owner draw: how draw it on gray scale?

    these code owner draw a 98/2000 OS style button:

    case WM_DRAWITEM:
    {
    DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam;

    //fill the background with...
  23. Re: how can i send messages between the parent window proc to child window proc?

    i fixt the problem with DrawThemeBackground(). now the button it's drawed:

    case WM_DRAWITEM:
    {
    DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam;
    HTHEME...
  24. Re: how can i send messages between the parent window proc to child window proc?

    now it's working:

    //on parent window procedure
    case WM_DRAWITEM:
    {
    DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam;
    ...
  25. Re: how can i send messages between the parent window proc to child window proc?

    do you mean these: "Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed."?

    if so, thats...
Results 1 to 25 of 826
Page 1 of 34 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