|
Here it is:
The complex view inside a splitter pane never looks "bad". It's just that the splitter borders are the default ones. And they're the default ones on the splitter view pane no matter if I use my own OnDrawSplitter or not. When using my OnDrawSplitter my simple TestViews seems fine...
But maybe you're right, it could be the complex view's fault.
|
|
|
|
|
Hi all,
I can override the window settings in my frame class' PreCreateWindow function.
Butdoes anyone know how these settings affect the fact that I'm using splitter windows? Can I not have a 3D style and still use splitters?
Anyway, I get a lot of strange debug errors when setting different style values.
Every time line 414 in winsplitt.cpp bugs out.
Anyone got a clue...?
/Tommy
|
|
|
|
|
On my machine line 414 has the following assertion:
ASSERT(cyIdeal >= 0);
It doesn't look like window styles have something to do with it. Or maybe you have different service pack installed (mine is SP5)?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
But maybe it has!
What happens if you do not have a 3D style window is probably that there is an error in calculating the pixels for borders that are not there and maybe that's why you can't use splitters in a certain way when having a ??? style.
|
|
|
|
|
You didn't answer my question: is assertion you're getting inside CSplitterWnd::SetRowInfo? Greping over mfc\src and mfc\include shows that SetRowInfo isn't called by MFC. Have a look at stack after assert and you should see who's calling SetRowInfo with invalid cyIdeal.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi again and thx for helping out,
How to see what SP I have?
How can I detect what and who makes the call to SetRowInfo?
|
|
|
|
|
How to see what SP I have?
Good question. There's no such info in help/about. Visual Basic displays it in splash screen, so if you have this thing installed have a look.
But it surely isn't service pack problem. The winsplit.cpp file has an ancient modification date (somewhere in 1998).
How can I detect what and who makes the call to SetRowInfo?
I've already told you that in previous post.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
"Have a look at stack after assert..."
Sorry, but I don't know what that means.
|
|
|
|
|
When your program ASSERTs, open the 'Call stack' window. From the main menu select View/Debug windows/Call stack. There's also an icon on the toolbar.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I need to find an item based on a CString line of text in a List Control. I am having some difficulty figuring out how to use the LPFINDINFO or whatever. Any Help? Thanks.
-Matt Newman
|
|
|
|
|
LVFINDINFO lfi;
lfi.flags = LVFI_STRING;
lfi.psz = strYourString;
int idx = lstYourList.FindItem(&lfi);
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thanks. The MSDN help or whatever it is doesn't go into great detail (at least for beginnners on how to use it.
-Matt Newman
|
|
|
|
|
Hey Guys,
I am having problems with serialization of float variables. I am trying to serialize a float array using a for loop. While saving it works fine but while loading I am getting an Illegal operation. Can some body help me??
Nitish
|
|
|
|
|
|
the code was;
if(ar.IsLoading())
{
for(int i=0; i<n;i++)
{
="" ar="">>x[i];
}
}
else
{
for(int i=0; i<n;i++)
{
="" ar<<x[i];
="" }
="" }
where="" x="" is="" a="" float="" array;
="" the="" program="" gets="" stuck="" at="" operator="">> for float;
what am I missing???
Nitish
Smile, It makes every one wonder what you are upto.
|
|
|
|
|
Use < and > instead of < and > when posting - your source is unreadable
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How to set cd-rom autorun?
I'd like to prevent cd-roms from executing automatically..
Is there an API function to do it?
Tom
|
|
|
|
|
See HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom
in particular the Autorun value
|
|
|
|
|
I look for an algorithm.
I have a graph which is created from a picture(table) of point.
I have the point during the click of the mouse.
I shall like knowing if this point is near to the graph and this from the picture(table).
I need help please!!
sophian
|
|
|
|
|
What exactly is your graph? You have a table of points and graph is a collection of lines connecting p0 with p1, p1 with p2 and so on?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Thank u very much.
it's ok, I 've found an solution.
I've a table of points, I test my point between 2 points.
but it's a little bit more difficult!
sophian
|
|
|
|
|
Is there a way for list controls to get notified when being scrolled?
|
|
|
|
|
I would like to know how use the instructions switch, case... with a combo list.
I explain it: If i have names in the combo list, and for each name i want to do different actions, for example just create specific afxmessagebox for each name. I know that the better way to do that is to use the switch command, but as it take only numeric expression how could i solve it?
gerald
|
|
|
|
|
You can use SetItemData(nItem, dwData) for each item in the listbox/Combobox and then you can do a switch statement using the GetItemData(nItem). In order to make this more efficient you should setup an enum of the values will always be the same. Here's a question though... Are you just trying to get the text of the Item and display that in a messagebox?
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
Thanks for the reply last time, but now I have another problem. When I include <afxcmn.h>, to use the treecontrol, I get the following error:
LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"
It's damn right, because the file does't exist. And it isn't on the cd either, as the help file tells me. What the?
WAVK
|
|
|
|