Hi, I have a simple problem here but I don't know how to fix this. I have a cdialog based application with a menu. When the user chooses what he wants, the program opens a new window like so :
m1p1_pr m1p1_prev_form;
m1p1_prev_form.DoModal();
But then, the menu is not closed and i cant...
any1? =/
I have another picture problem.. I can manage to show the little logo I want in the top-left corner but I cant figure out how to show it with the name of the program on the windows bar (where all the apps running are showed).
I hope someone will help me with this part, i would...
ok, to hide the button i used GetDlgItem(IDOK2)->EnableWindow(FALSE); and it works perfectly, but if i want to hide an item in the menu (lets say IDR_MENU1), i cant use that function, which one i use? EnableMenuItem? when i use it, it says it doesnt use 2 parameters o_O
>>i dont seem to be...
Hi, i'm wondering how i can show a bitmap picture on my main windows with the control picture(how can i tell it what picture i want it to show?)
hope u can help me, thx
isnt there a edit button on this forum? :S
new problem with messagepump, the program is still running and i dont seem to be able to get the false in if(MessagePump()==FALSE) ... so i cant do a thing after this... how do i stop the program from the function itself and not make it run in background?
PerFnurt
it seems to be working just fine now =)
The message pump is leading me to 2 more question... how can i hide my simulate button when i click on it? and how to convert a CString * to char * so i can open my file in the message pump fonction?
the 1-2 (messagepump)is great :P (now i just have to figure out if i can pass my arrays to the exit fonction so it frees the memory :P)
as for the malloc/new sollution, i'll try it, but if it works, i'll have to change alot of things >.<
well, thx for your help =) i'll write about the results...
-So what's the problem then?
if the number of elements is too big (i tryed with nx1=2000 and nx2=5), the message box appears and it works. If both are too big (tryed nx1=2000, nx2=2000), the message box, wont appear and the program will crash when i work with the arrays.
------------------------------------
Solution 1: Put a message pump inside to loop.
// Returns false if the application wants to be closed.
bool MessagePump()
{
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if (msg.message == WM_QUIT)
{...
Hiya all, i'm new around
I've been working with c/c++ for a while and now i'm trying visual c++ and i'm having some probs with my application (some simulation of production in real-time):
1. I'm trying to refresh the value of one field while i'm running my simulation but it wont work using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.