|
ok thanks..
|
|
|
|
|
could u please tell me how u got the details??
|
|
|
|
|
|
;)
|
|
|
|
|
if you have any problem with this function see example CWindow::CenterWindow in msdn
|
|
|
|
|
Thanks a lot for the info , it will be use full for me.
|
|
|
|
|
or you can set Center in property dialog to true
|
|
|
|
|
Sorry as I am really new to vc++ .basically I am a java programmer and I have to do some stuff in VC++ as part of the project.I tried to go through the MSDN and other tutorials.But I guess it will take lot of time and I dont have time.
can any one give me simple idea of winsock programming,like, do we have something like ServerSocket and Socket(as in java).
and the flow of function calls once a connection is accepted.
Do we have any separate config for UDP and TCP.
|
|
|
|
|
use CSocket class
The calling of functions can be done in the manner below as per your requirement:
CSocket s;<br />
s.Create();<br />
s.Connect();<br />
s.Send();<br />
s.Receive();
Somethings seem HARD to do, until we know how to do it.
_AnShUmAn_
|
|
|
|
|
thanx for your help
|
|
|
|
|
|
hey thanx man.. !!this exactly wat I wanted.Thank you very much for your help;)
|
|
|
|
|
REQURIEMENT :
DETERMINE VERTICAL SCROLLBAR PRESENCE IN LISTBOX.
The ListBox has both vertical scrollbar and horizontal scrollbar checked in the resource.
When we add string to ListBox ,after addding the number of items,the vertical scroll bar
appears in the listcontrol.
Is there any way to check whether the vertical scrollbar is available or not?
CLISTBOX in vc++
for thendral
-- modified at 5:33 Friday 12th May, 2006
|
|
|
|
|
|
check for the style WS_VSCROLL
nave
|
|
|
|
|
HI NAVEEN..,
i have the scroll property checked for both vertical and horizontal scrollbar.
scenario 1:
1) you have Clist box
2) Add few entry to listbox till the vertical scroll bar appears
3) is there any way to find at this point that scrollbar has appeared.
so that i may do some action based on that.
Query :
Any point of time given a LISBOX is it possible to find where VERTICAL SCROLL is visible or available .
for thendral
|
|
|
|
|
For a list box even though u have set WS_VSCROLL style while creating, the style will be there untill there is enough item to show scroll bar. i.e..
The WS_VSCROLL style will only be there in the listbox if only the listbox have scroll bar at that time..
1.Consider that a listbox can occupy 5 items with out scroll bar..
2.Now the list is having 4 item..Hence there will not be any scroll bar..
So the listbox will not be having WS_VSCROLL style...
3. Now i inserted two more items so that the a verical scroll bar appear for the list box.
4. Now if i check for the WS_VSCROLL style.. it will be there
nave
|
|
|
|
|
what is the use of static class/function/variables.
NiLeSh KoRpE
|
|
|
|
|
When you declare a class member (function or variable) as static, it will be shared among all instances of the class (which means that, for a variable, if one class changes its value, it will be changed for all other instances).
Declaring a static variable in a function means that the variable won't be reinitailized each time you enter the function again: it will keep the same value as it had when the function was left the last time.
Cédric Moonen
Software developper
Charting control
|
|
|
|
|
what is subclassing actually??
how do u create a subclass in SDK and MFC?
Thanks in advance
Regards,
Prashanth.v
|
|
|
|
|
subclassing is not a MFC nor SDK concept but a C++ (and even general OO) concept.
it means using a base class to reuse its behavior/design/methods and not reinventing the wheel... another good term for this is also inheritence
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
can u please give me a example????
|
|
|
|
|
class BaseClass {
int m_iSize;
public:
int getSize() { return m_iSize; }
void setSize(int i) { m_iSize = i; }
};
class ChildClass : public BaseClass {
double m_dPrice;
public:
double getPrice() { return m_dPrice; }
void getPrice(double d) { m_dPrice = d; }
};
then, you use it like any object which contains all...
ChildClass cc;
cc.setSize(4);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
-- modified at 5:30 Friday 12th May, 2006
|
|
|
|
|
toxcct wrote: class ChildClass : BaseClass {
class ChildClass : public BaseClass {
class ChildClass : protected BaseClass {
class ChildClass : private BaseClass {
Maxwell Chen
|
|
|
|
|