Is it possible to to check an item (IE: by default a menu item is unchecked, but when someone clicks it, it becomes checked)?
I'm using MSVC++ 6.0 Enterprise if that helps.
[EDIT]: Also using Win32, not MFC [/EDIT]
Is it possible to to check an item (IE: by default a menu item is unchecked, but when someone clicks it, it becomes checked)?
I'm using MSVC++ 6.0 Enterprise if that helps.
[EDIT]: Also using Win32, not MFC [/EDIT]
Last edited by Quantrizi; 08-09-2003 at 02:40 PM.
Are you using the Win32 API or MFC?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Win32 (Sorry, forgot to mention it).Originally posted by SyntaxBubble
Are you using the Win32 API or MFC?
Code:// This Will Check A Menu Item // hMenu: handle of the menu // ID_MY_ITEM: id of menu item (ex. ID_FILE_NEW) // MF_CHECKED: self-explanatory :) CheckMenuItem(hMenu, ID_MY_ITEM, MF_CHECKED);I hope this is what you wanted.Code:// This Will Check A Menu Item // hMenu: handle of the menu // ID_MY_ITEM: id of menu item (ex. ID_FILE_NEW) // MF_UNCHECKED: self-explanatory :) CheckMenuItem(hMenu, ID_MY_ITEM, MF_UNCHECKED);
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Thanks, it does. Did you look at MSDN?Originally posted by SyntaxBubble
Code:// This Will Check A Menu Item // hMenu: handle of the menu // ID_MY_ITEM: id of menu item (ex. ID_FILE_NEW) // MF_CHECKED: self-explanatory :) CheckMenuItem(hMenu, ID_MY_ITEM, MF_CHECKED);I hope this is what you wanted.Code:// This Will Check A Menu Item // hMenu: handle of the menu // ID_MY_ITEM: id of menu item (ex. ID_FILE_NEW) // MF_UNCHECKED: self-explanatory :) CheckMenuItem(hMenu, ID_MY_ITEM, MF_UNCHECKED);
Yes, I sure did. But I don't use the Win32 API anymore. I use MFC with MSVC++ 6.0. I find it easy to use.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Any resources for MFC?Originally posted by SyntaxBubble
Yes, I sure did. But I don't use the Win32 API anymore. I use MFC with MSVC++ 6.0. I find it easy to use.
Yes, of course. When you go to the MSDN Library, http://msdn.microsoft.com/library/, there is a tree-view thing on the left. Click "Visual Tools and Languages", "Visual Studio 6.0", "Visual C and C++ 6.0", and then click "Product Documentation". That should be what you need. I basically taught myself most of MFC though.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Thank you.Originally posted by SyntaxBubble
Yes, of course. When you go to the MSDN Library, http://msdn.microsoft.com/library/, there is a tree-view thing on the left. Click "Visual Tools and Languages", "Visual Studio 6.0", "Visual C and C++ 6.0", and then click "Product Documentation". That should be what you need. I basically taught myself most of MFC though.
Can you tell me in the FreeLibrary() function, is it that if it returns true that it worked, or if it returns false that it works?
MSDN Library says that the function is successful if the return value is non-zero, which means 'true'. False is always a '0' (zero) value, and true is anything BUT '0' (zero). So FreeLibrary() is successful if it returns 'true'.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
Thank you BTW: The MFC thing on MSDN is pretty well dead (page not found).Originally posted by SyntaxBubble
MSDN Library says that the function is successful if the return value is non-zero, which means 'true'. False is always a '0' (zero) value, and true is anything BUT '0' (zero). So FreeLibrary() is successful if it returns 'true'.
Well, if you have any good Peer-2-Peer applications, such as iMesh (i prefer this one ), WinMX, etc., then search "Visual C++" under documents.
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
For the FreeLibrary() function, everytime I run it, it processes the result 3 times, then the program crashes. Got any idea on why this is? If you want, I can send you the file through AIM (evanescence s0ul).
Microsoft's preffered MFC site is now http://www.codeguru.com, which also contains the MFC Programmers Sourcebook.
Thank you. I'll check it out.Originally posted by _Elixia_
Microsoft's preffered MFC site is now http://www.codeguru.com, which also contains the MFC Programmers Sourcebook.