|
I wonder if there's a tool associated with VS.NET 2007 to view the messege queue of a certain thread or not. If not, could you please address one. A typical "Messege Viewer" may looks like this:
WM_KEYDOWN
WM_CHAR
WM_KEYUP
WM_DEADCHAR
WM_PAINT
.
.
.
Thank you masters!
|
|
|
|
|
We use spy++ in India.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
ACK: the same here in Italy.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
And from now on, me in IRAN
Thank you masters!
|
|
|
|
|
Wow, spy++ starts to be well-known all around the world...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All
My problem is how can i hide application when application is lounch through Startup.I have got so many good reply but i havn't found how to write command line arument in dialog application.My last post link is here
http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2829208[^]">
plz help me how can i write command line argument.
|
|
|
|
|
MsmVc wrote: My problem is how can i hide application when application is lounch through Startup.
As opposed to being launched how?
MsmVc wrote: ...i havn't found how to write command line arument...
Have you ever ran a program from a command prompt? For example:
dir c:\windows
copy file1 file2
ipconfig /all
The arguments after the command are known as command-line arguments. So, there's really no concept of writing a command line argument.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
i m using a groupbox when i add variablr for this groupbox than this error occurs.
and than i m not able to add variable for groupbox.
please tell me what can i do.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
Hi,
I made CListCtrl application which is used in column '0' checkboxes,column '1' comboboxes.when check combo will place,when you uncheck combo disappear.its working fine using onItemChanged() function.but problem is when user do double click check box becomes uncheck but combo placing in column '1' instead of disappear .am placing checkboxes dynamically using LVS_EX_CHECKBOXES.for this i need use dblclick event,then i should i write code?please help me in this.
Code Snippet:
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
int index=0;
int i;
index=pNMListView->iItem;
CStringList pComboList;
pComboList.AddTail("Sonu");
pComboList.AddTail("Sunny");
pComboList.AddTail("Cheechaa");
pComboList.AddTail("Srinu");
for(i=0;i < m_List.GetItemCount();i++)
{
bChecked=m_List.GetCheck(i);
CString strTemp;
strTemp.Empty();
strTemp.Format("%s",m_List.GetItemText(m_List.iRowIndex,1));
if(strTemp.IsEmpty())
{
if((i==m_List.iRowIndex) && (bChecked==1))
{
m_List.ShowInPlaceList(m_List.iRowIndex,1,pComboList,"");
//ShowinPlaceList is used for to place combo box
}
}
else
{
if(i==m_List.iRowIndex && bChecked==0) m_List.SetItemText(m_List.iRowIndex,1,"srinu");
}
}
*pResult = 0;
Regards,
Govind
|
|
|
|
|
Hi all,
i am using wmi for getting hard disk values...
SELECT * FROM Win32_DiskDrive
Now i am getting value in hard disk model name like this
hr = pclsObj->Get(L"Model", 0, &vtProp, 0, 0);
AfxMessageBox(vtProp.bstrVal);
also number of cylinders is also coming using this coding
hr = pclsObj->Get(L"TotalCylinders", 0, &vtProp, 0, 0);
AfxMessageBox(vtProp.bstrVal);
Now my problem is i am not getting value for Total Heads
its printing blank
hr = pclsObj->Get(L"TotalHeads", 0, &vtProp, 0, 0);
AfxMessageBox(vtProp.bstrVal);
hr = pclsObj->Get(L"TotalHeads", 0, &vtProp, 0, 0);
AfxMessageBox(vtProp.bstrVal);
in total heads value i am getting
156296385
I am not getting how to resolve it....
what method i should use to get values???
|
|
|
|
|
I think TotalCylinders, TotalHeads will be numbers(may be UINT or some other number data type)
So to get these values i think you have to access corresponding ( depending on the data type of field) member of VARIANT. Look MSDN for details of VARIANT. Does it make sense?
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
Are you sure that the variant in vtProp is a BSTR ? You should always check the value of vtProp.vt , as that tells you which data member of vtProp is valid. You can then convert vtProp to be a string using the VariahntChangeType function.
|
|
|
|
|
I used vtProp.vt parameter and it's returning 3 and in debug window its showing I4 = 255. Now what should i do to print this value?
|
|
|
|
|
Easiest way is to change the variant to a BSTR using VariantChangeType
VariantChangeType(&vtProp, &vtProp, 0, VT_BSTR);
AfxMessageBox(vtProp.bstrVal);
|
|
|
|
|
i want to display multiline tooltip on popup menu when mouse is moved over popup menu.
thanks in advance.
|
|
|
|
|
|
|
I have created an SDI application which i want to start maximised and disable the Restore button. For which i have written the following line in IniInstance().
m_pMainWnd->ModifyStyle(WS_MAXIMIZEBOX,0);
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd->UpdateWindow();
With the above lines the window is shown maximised and the Restoredown button looks disabled. But when I double click the Titlebar, the window is being restored and can not be maximised then.
I want the window to be maximised or minised, but not to be resotred down.
How to do that.
Thank you
Saadhinchaali
|
|
|
|
|
You're probably better off handling WM_GETMINMAXINFO , and telling Windows what you want the minimum and maximum size of your window to be (hint: same size as the screen!).
|
|
|
|
|
Try handling the WM_SYSCOMMAND messages (OnSysCommand) and swalow the restore (SC_RESTORE) message. Don't know how reliable that is though...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
|
Check out this[^]and this[^]. Those links will be helpful.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
i hv a button(IDC_NEXT) thats functionality against mouse clicking is to switch to another dialog thats all fine but when i press space bar then execute the button clicking code and move to next dialog , i want to restrict it. for this i hv used pretranslate Message where capturing space bar event but still it execute function onNext() that is called when click next button so how to restrict this
if ((pWnd->GetDlgCtrlID() == IDC_NEXT))
{
if(ConfigMessage==VK_SPACE)
{
}
}
|
|
|
|
|
Is the input focus on your next button? Because if yes, then don't wonder it gets pushed when someone hits SPACE, it's written that way. If you don't see the focus rect, press ALT on your keyboard, that should make it appear, and if it sits on your button... if you only want the command message from the button when the user clicks on it and not when he uses the keyboard -and in my humble oppinion you shouldn't do that unless it is absolutely needed- you will have to subclass the button and overwrite its keyhit-handler(s).
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|