|
|
My monitor control have 10 lines sized
after the 10th AddString(...);
Scroll bar pop up on the monitor controll
But as more AddString comes (so more lines)
the Focus of Monitor is on the first 10 lines
So how the monitor control get focus on each new AddString?
|
|
|
|
|
|
OMG ... sorry my mistake..
i mean List Box
(i have add a variable m_MonitorCtrl for that box ..:P)
|
|
|
|
|
|
|
so i have to create a int variable
m_Cursel = 0;
each
m_ListBox.AddString("...")
m_Cursel = m_Cursel +1;
m_ListBox.SetCursel(m_Cursel);
...
|
|
|
|
|
I tried that but doesnt work
-- modified at 21:06 Saturday 27th May, 2006
hm ... i think it's the time...
As i see now the SetCursel work
|
|
|
|
|
|
Hello!
How can I insert a new menu to the view-menubar.
I tried
htest = MyMenu.Detach();<br />
GetMenu()->InsertMenu(0, MF_BYPOSITION | MF_POPUP, (UINT)htest, "test");<br />
in the OnCreate(...)->method of the CView and the CChildFrame, but I always
got an assertion (for example in afxwin1.inl, line 1075)
The same Code in CMainFrame worked (but it modified only the
menu from CMainFrame, not from the View...)
Alex
|
|
|
|
|
there is a fast way to upside-down a slider control?
|
|
|
|
|
Use the slider control styles. TBS_TOP places the tick marks on top and TBS_BOTTOM places them on the bottom. You can use ModifyStyle() to switch them around. TBS_REVERSED will place the high end on the left and the low range on the right.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
|
|
I thought int cannt hold negative numbers
i "sympolize" an int variable with %d
e.x
test.Format("%d",int);
|
|
|
|
|
|
hm i dont understand
when i create a fuction or variable ..etc and
write Type : int
then that function / variable can take negative numberS?
|
|
|
|
|
|
|
Michael Dunn wrote: An unsigned int can only hold positive numbers.
Actually, non-negative numbers.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
|
For example, I send a file for A to B(use a tcp/ip stream socket), that data may send block by block using a while, and at the side of B, the "IO completion" may queue on IOCP in another order.
1. Is it possible?
2. How to receive data in the right order?
|
|
|
|
|
|
I still can't believe.
For example, I send a file which is 1MB.
I post two WSASend.
the 1st sends 0.99MB
the 2nd sends 0.01MB
It is likely that the server will deal the completion of the WSARecv with the 2nd one.
Another question:
If two sockets connected in tcp/ip stream mode, then does N recv(s) works the same way, no matter how large N is? And don't know how many sends is called.
One word, socket only knows stream without any boundary information in the stream, is it true?
I'm new to socket programming.
Thanks for your help.
-- modified at 16:40 Saturday 27th May, 2006
|
|
|
|
|
For a scalable server, multithread is needed, how to reorder?
|
|
|
|