Thanks, everything its ok in that part of my program now =]
Type: Posts; User: Tropicalia
Thanks, everything its ok in that part of my program now =]
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
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";...
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 =]
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...
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
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);...
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 =]
Well, i actually want to know why set the bkmode to transparent makes that bug and how to use it without get that error
There is some function wich return the X and Y position of an button, edit, or any other control? Thanks :D
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] =...
Thanks Ken.
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
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));...
*topic* preferencially using WNDCLASSEX "style" argument (like CS_NOCLOSE)
Thanks.
--EDIT--
Answer: http://cboard.cprogramming.com/showthread.php?t=64492
And dont you think that you can use array for a more readable code?
maxorator, your cat will kill you because you have 666 posts
I mean put the prototype before main, not in the header, i tested here and worked
Just do it and your code will work =]
Its because you must declare the function prototypes
Well, now it works =]
Thanks for all you guys :P
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 (...
twomers. your code show the cout message in the while two times if I input one string.
Yes the return is useless, i forgot to get rid of it.
and yes, MAX is an int
I think its because you declare the function before main (it comes before main since it is in a header file)