Search:

Type: Posts; User: Tropicalia

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Save Dialog

    by Tropicalia
    Replies
    6
    Views
    1,301

    Thanks, everything its ok in that part of my...

    Thanks, everything its ok in that part of my program now =]
  2. Thread: Save Dialog

    by Tropicalia
    Replies
    6
    Views
    1,301

    Thanks.. I read the documentation and corrected...

    Thanks..
    I read the documentation and corrected it, and now the dialog opens.
    But where do i set the content of the file that will be saved? I dont got it, even reading the documentation
  3. Thread: Save Dialog

    by Tropicalia
    Replies
    6
    Views
    1,301

    Well, the function actually dont open any dialog...

    Well, the function actually dont open any dialog box... here is my struct:


    OPENFILENAME b;
    b.Flags = OFN_CREATEPROMPT;
    b.hwndOwner = hwnd;
    b.lpstrDefExt = "txt";
    b.lpstrFile = "teste.txt";...
  4. Thread: Save Dialog

    by Tropicalia
    Replies
    6
    Views
    1,301

    Save Dialog

    Hey, how do i make a save dialog (the one present in almost every program, that you choose where to save, ctrl+s in notepad :D)? I also want it to allow just .txt extension to be saved, thanks =]
  5. Replies
    4
    Views
    1,102

    It said "a menu item wasnt found". So i realized...

    It said "a menu item wasnt found". So i realized that the menu was not hMenu, it was hSubMenu, but not the error that it return is "incorrect paramter").

    Sorry if the error messages are not...
  6. Replies
    4
    Views
    1,102

    But theMSDN example code is exactly as mine, the...

    But theMSDN example code is exactly as mine, the sctruct defined as MENUITEMINFO and the function member as "&a".
    Oh... and if i set cbsize to (sizeof)a, the situation continues the same
  7. Replies
    4
    Views
    1,102

    Enabling a menu

    Hey guys, im trying to enable a menu item that is by default MFS_GRAYED, that is my shot:


    MENUITEMINFO a;
    a.fMask = MIIM_STATE;
    GetMenuItemInfo(hMenu,ID_FILE_SAVERESULT,false,&a);...
  8. Replies
    3
    Views
    1,709

    SetTextColor question

    When i use that function, the color of the text never change, except if i use inside WM_CTLCOLOREDIT...
    How to make it work outside? thanks =]
  9. Replies
    2
    Views
    1,041

    Well, i actually want to know why set the bkmode...

    Well, i actually want to know why set the bkmode to transparent makes that bug and how to use it without get that error
  10. Replies
    1
    Views
    1,148

    Get Window X and Y?

    There is some function wich return the X and Y position of an button, edit, or any other control? Thanks :D
  11. Replies
    2
    Views
    1,041

    Weird scroll bug

    Hey, that is what happens when i scroll the edit box in my little program:
    http://img516.imageshack.us/img516/9761/imageshackrb0.jpg

    Here is the edit:

    edits[1] =...
  12. Replies
    2
    Views
    927

    Thanks Ken.

    Thanks Ken.
  13. Replies
    2
    Views
    927

    What is this?

    What is the name of that gray rectangle that the arrow in the image points to? how do i add them in my program? :D
    http://img353.imageshack.us/img353/8217/wtsthiswo6.jpg
  14. Replies
    1
    Views
    926

    Setting different background

    Im new to windows programming and im trying to change the background color of a edit box doeing:

    case WM_CTLCOLOREDIT:
    HDC hdc;
    hdc = GetDC (controls[0]) ;
    SetBKColor(hdc,RGB(30,50,80));...
  15. Replies
    1
    Views
    2,208

    How do i disable maximize?

    *topic* preferencially using WNDCLASSEX "style" argument (like CS_NOCLOSE)
    Thanks.

    --EDIT--
    Answer: http://cboard.cprogramming.com/showthread.php?t=64492
  16. Replies
    16
    Views
    1,808

    And dont you think that you can use array for a...

    And dont you think that you can use array for a more readable code?
  17. Replies
    41
    Views
    7,992

    maxorator, your cat will kill you because you...

    maxorator, your cat will kill you because you have 666 posts
  18. Replies
    30
    Views
    3,854

    I mean put the prototype before main, not in the...

    I mean put the prototype before main, not in the header, i tested here and worked
  19. Replies
    30
    Views
    3,854

    Just do it and your code will work =]

    Just do it and your code will work =]
  20. Replies
    30
    Views
    3,854

    Its because you must declare the function...

    Its because you must declare the function prototypes
  21. Replies
    36
    Views
    2,739

    Well, now it works =] Thanks for all you guys :P

    Well, now it works =]
    Thanks for all you guys :P
  22. Replies
    36
    Views
    2,739

    In twomers code, if the input has 1 char, it...

    In twomers code, if the input has 1 char, it gives one error message, if the input has 2 chars it gives two error messages, and there you go...



    cout << "Input a number please.\n";

    while (...
  23. Replies
    36
    Views
    2,739

    twomers. your code show the cout message in the...

    twomers. your code show the cout message in the while two times if I input one string.
  24. Replies
    36
    Views
    2,739

    Yes the return is useless, i forgot to get rid of...

    Yes the return is useless, i forgot to get rid of it.
    and yes, MAX is an int
  25. Replies
    30
    Views
    3,854

    I think its because you declare the function...

    I think its because you declare the function before main (it comes before main since it is in a header file)
Results 1 to 25 of 57
Page 1 of 3 1 2 3