|
In the mdi project I could set cx and cy in the precreate function of the mainframe. But in the dialog based proj, how do I set the initial size of my dialog?
Thanks,
ns
|
|
|
|
|
One solution is inside OnInitDialog().
Kuphryn
|
|
|
|
|
Thanks. I used MoveWIndow because I couldnt decide what parameter 1 of SetWindowPos should be..
Thanks,
ns
|
|
|
|
|
|
ns wrote:
I couldnt decide what parameter 1 of SetWindowPos should be
NULL , and use the SWP_NOZORDER flag in the nFlags parameter
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
ns wrote:
But in the dialog based proj, how do I set the initial size of my dialog?
At design time, in the resource editor.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
|
I have a CListCtrl (report view) with 2 columns. Once the list is populated with items, I want the user to be able to edit the information found in the second column. I have it set up so that they can only select one row at a time. Is there some style or state that I can set which will allow a user to do this? (I know it's possible to allow editing of the information in the 1st column, but I havn't yet been able to figure out how to allow editing of the 2nd column, but NOT the 1st column).
|
|
|
|
|
One solution is SetItemText(). Pass in the row and column.
Kuphryn
|
|
|
|
|
That's not exactly what I want. I'd like the user to be able to edit it in place. Like, when they click on it, I want them to be able to edit the contents of that specific item (in the second column) without anything else popping up. I'm assuming that by using SetItemText() I'd have to have a separate place (an edit box) for the user to enter this information, then get the text from that edit box and update the list control with the new text. Ideally, I'd like to be able to just do it from within the list control.
|
|
|
|
|
I'm afraid it's not possible using just CListCtrl . You need something more customizable. Check out the classes available here[^] on CP.
Regards,
Alvaro
Can I ask you a question?
|
|
|
|
|
I read through the article that does this at:
http://www.codeproject.com/listctrl/listeditor.asp
which led me to read an article on CodeGuru.com relating to the same thing.
http://www.codeguru.com/listview/edit_subitems.shtml
I have a bit of a problem. I have a class (CElementListCtrl, derived from CListCtrl) which contains all of the functions found in the above link. In my CTraceElementDialog class I have a member variable of type CElementListCtrl:
CElementListCtrl m_elementList;
The list gets created as it should, but none of the code in the functions contained within CElementListCtrl ever get executed. In the article I used as a reference, it mentioned using the WM_LBUTTONDOWN message, but I can't seem to be able to use that message for my list. The only message available that is close to being the same (I think?) is the NM_CLICK message. I have tried to use a message map for this, but it still doesn't work at all. I have no clue what I'm doing wrong.
|
|
|
|
|
|
Thanks. I think I found what I'm looking for now...
|
|
|
|
|
use CListCtrl::SetExtendedStyle(LVS_EX_LABELTIP ),
LVS_EX_LABELTIP
Version 5.80. If a partially hidden label in any list-view mode lacks ToolTip text, the list-view control will unfold the label. If this style is not set, the list-view control will unfold partly hidden labels only for the large icon mode.
|
|
|
|
|
Does anyone have a nice class or function to
handle the singular value decomposition of a
square (nxn) matrix?
John Theal
Physicist/Mathematical Programmer
Digital Immersion Software Corporation
Got CAD?
http://www.presenter3d.com[^]
http://www.merlin3d.com[^]
|
|
|
|
|
I'd check out "Numerical Recipies in C++" by Press
He's got some simple but reasonably good numerical routines like that.
-Kevin
==============
If we knew what it is that we were doing, it would not be called research, would it?
-Einstein
|
|
|
|
|
Hello, everyone!
I want to learn general debug technology and some debug tricks of VC 6.0. For example, how to use debug menu of VC 6.0.
Where can I find some on line tutorials about this topic?
Thanks in advance,
George
|
|
|
|
|
Check out MSDN.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vcoriDebuggingTechniquesForVisualC.asp
Kuphryn
|
|
|
|
|
Thanks, kuphryn buddy!
George
|
|
|
|
|
hi..i have a menu in my Dlg....
an i want to diable it from my Data class...
so i add a member variable for the menu
void CGoServerDlg::OnUpdateListenListenforclients(CCmdU
I* pCmdUI)
{
}
in the dlg.....
now i want to disable it from the data class...
i have a member var in my data class pointing to the Dlg m_pSvrData
can any one pls help???
tks
in my data class if i do this....
m_pSvrData->OnUpdataListenListenforclients(???????)
tks
With Regards
Joseph R. Thomas
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
|
|
|
|
|
There are severa solutions. One solution is to call a member function of the dialog window. Have it disable the item. Another solution is messages.
Kuphryn
|
|
|
|
|
One solution is to call a member function of the dialog window
wont that involve lotsa passing the control around and making some flags.. and taking care of the flags everytime anything ahppens to the menu....
i am willing to do that...but is it correct to do that way??is there a straight forward answre??
tks
With Regards
Joseph R. Thomas
Have a Super Blessed Day!
-------------------------
For God has not given us a spirit of fear, but of power and of love and of a sound mind.
2 Timothy 1:7
|
|
|
|
|
Hi,
Can anyone tell me what is this exception?
Unhandled exception in mytest.exe(mfc42.dll):0xc00000096 privileged Instruction.
Regards
Neaha
|
|
|
|
|
I believe it usually happens when you are passing invalid parameters to the base classes or you are trying to access data when it hasn't been created yet (invalid data).
|
|
|
|