|
|
Hi All
Can i add EditControl through code.if yes then plz help me..
|
|
|
|
|
|
Thx's it is working..Can i show new edit as a visible false..
|
|
|
|
|
MsmVc wrote: Can i show new edit as a visible false
|
|
|
|
|
MsmVc wrote: Can i show new edit as a visible false..
No. Setting the Visible property to false means you want the window to be hidden, not shown. Now, are you wanting to show or hide the window? Perhaps the removal or inclusion of the WS_VISIBLE style is what you are after.
"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
|
|
|
|
|
OR you can use of ShowWindow(SW_HIDE).
|
|
|
|
|
This link[^] seems helpful.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Or you can use of CreateWindow.
|
|
|
|
|
How can i add variable of edit control when i am useing this one
void CMyView::OnInitialUpdate() <br />
{<br />
CView::OnInitialUpdate();<br />
<br />
CEdit* pEdit = new CEdit;<br />
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER,<br />
CRect(10, 10, 100, 100), this, 1);<br />
}
Plz help me
|
|
|
|
|
|
Of course you must be declare your variable outside of a function.
|
|
|
|
|
Hi all!
I have the following class and i want a way to make the tree, and edit controls to have access to MAINCLASS variables.
a. Is that OK to create a constructor to each one of the controls to pass a parameter something like
Window* wn;
And use it as ((MAINCLASS *)mainwindow)->a; within class implementation ?
Or can you suggest me an other OOP way because i have read somewhere that this way to convert a base class object (mainwindow) to a derived class object is not so legal?
class MAINCLASS: public window
{
...
...
public:
//constructor
//destructor
MyTreeCtrl tc;
MyEditCtrl ec;
...
...
public:
// Variables
int a;
}
a.
// in MyTreeCtrl h
class MyTreeCtrl
{
...
...
public:
MyTreeCtrl(Window* wn)
void Foo();
...
...
public:
// Variables
Window *mainwindow;
};
// in MyTreeCtrl cpp
MyTreeCtrl::MyTreeCtrl(Window* wn)
{
mainwindow = wn;
}
MyTreeCtrl::void Foo()
{
...
int b = ((MAINCLASS *)mainwindow)->;a
...
}
Thanks!
|
|
|
|
|
one suggestion (Off Topic) : Please use code block tags for posting code. Also indent the code so it is readable.
Now about the topic.
You can use forward declaration to solve your problem.
Check this link for example : Forward declaration[^]
Regards,
Sandip.
|
|
|
|
|
Hi All
I want to set OS directory in editbox.i want to set OS directory name when my application is run.Plz help me
|
|
|
|
|
cant understand what you want?
you want to fetch os directory like
"C:\windows" or what? and set it to edit control
|
|
|
|
|
yes i want to set "C:\windows" in edit control..
Plz help me
|
|
|
|
|
GetSystemDirectory()
u can use.
SetDlgItemText for set text in Edit Control.
u can use GetWindowsDirectory() also but in xp and next it gives folder
with user name so better to use GetSystemDirectory() and extract from it.
Enjoy.
|
|
|
|
|
Use SetWindowText() (documentation here) to set the text in the edit control.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
Introduction to Object-Oriented JavaScript
|
|
|
|
|
char lpBuffer[MAX_PATH];
UINT len = GetWindowsDirectory(lpBuffer,MAX_PATH);
SetWindowText(hWndEdit,lpBuffer);
cheers
Varghese Paul
|
|
|
|
|
|
Hello,
I had set timeout with
int n = 20000;
setsockopt(ClientSocket,SOL_SOCKET,SO_RCVTIMEO,(char*)&n,sizeof(int);
and
set mode nonblocking with function call
int iMode = 1;
ioctlsocket(ClientSocket,FIONBIO,(u_long FAR*)&iMode)
if i set mode to nonblocking than timeout is not called in recv().
but if i do it with mode blocking (default) than every thing is
working fine and timeout called.but i have to work with non blocking
mode so anybody can tell me how can i set timeout in nonblocking socket.
or why i dont get timeout ,i missed something plz reply.
Thanx in advance.
|
|
|
|
|
Hi all,
I m using List control as Report view, there are number of columns.
i want one purticular coloumn text always show with color.
i have some fixed text for this coloumn.
text1,text2,text3,text4 are 4 diffrent fix text for coloumn.
i want text1 show in red color,text2 in green,text3 in blue,and text4 in brown.
can this possible please tellme.
if possible please explain with example.
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
|
|
|
|
|
"_$h@nky_" wrote: can this possible please tellme.
yes
"_$h@nky_" wrote: if possible please explain with example.
search for XListCtrl on codeproject and you will get an idea of how you can do it
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|