tried like this to get this value:
view = (int) SendMessage(pshell,WM_COMMAND,ID,0);
but in ID,it is always returning same value for all views.
Plz suggest me some solution.
I explained this to you in an earlier question that you raised (exactly the same if I recall). Send Message will not set ID to anything, SendMessage is for sending messages and their associated parameters. I am also not aware of any method to get the view type from the dialog when it closes.
I am using a ListBox and add Variable derive of CCheckListBox.i use a Check box that is use to select and UnSelct all items of ListBox.i handle it over ON_LBN_SELCHANGE of ListBox and Click event of Check box.
Selection and UnSelection from Checkbox working fine.
But problem occur when i use it by List box.i want to do when the all items of list box is checked then Select all Check box automatically Checked or vice-versa.
Code is here
Properties setting of List Box Has String is TRUE,Owner Draw is FIXED,Selection is Multiple.
Problem is that when first time click on listbox then OnLbnSelchangeListColumns() is call and when i click on listbox on second time then OnLbnSelchangeListColumns is not call.
Plz help me
i used print function in my application it will print the contents of richedit control but i want to print whole dialog along with button and richedit control content in vc++,mfc.Anyone who knows this please help me.
Hi. Well.. another time when i need help. I am trying to create a map (made of MPictureBox(my class derived from CButton)) in a thread. I am creating modal window and clicking "ok" button and creating map on my main window (CDialog). When i did it without threads all worked just fine. But when i put the creation in a thread it make it all very well... BUT! created buttons don't show up in the main window! (they exists in the memory but didn't show). I was thinking that probably it's some kind of problem related to using main window with different threads so i wrote this
with 0 effect. Same trouble i had when i tryed to create some dynamic objects (with "= new ..."). Somebody had same trouble? What's the problem? (When i do the same thing without any thread it all results okey).. Pls help.
If this is MFC then its Window Maps are created per thread and a CWnd* object in one thread is not (easily) accessible in another. So doing UI stuff in worker threads is difficult. It is much easier to do this in the main app thread, and shuffle off any lengthy non-ui processing to worker threads.