Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by marty13

  1. marty13

    minimizing problem

    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...
  2. marty13

    Showing a bitmap

    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...
  3. marty13

    Refreshing form view text boxes

    Look at the MessagePump function there : [link]thread116-602962
  4. marty13

    multiple problems

    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...
  5. marty13

    Showing a bitmap

    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
  6. marty13

    multiple problems

    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?
  7. marty13

    multiple problems

    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?
  8. marty13

    multiple problems

    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...
  9. marty13

    multiple problems

    -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.
  10. marty13

    multiple problems

    ------------------------------------ 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) {...
  11. marty13

    multiple problems

    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...

Part and Inventory Search

Back
Top