|
Can you help us background color of ??
|
|
|
|
|
Hi Experts,
How to create a dialog with another. I elborate my problem.
I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side.
Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
|
|
|
|
|
For make a new dialog you can use of CDialog class or CreateWindow.
|
|
|
|
|
I did like this.
..
..
CDialog m_Dlg;
..
..
<br />
m_Dlg.Create(IDD_DLG_SELECT_ALGO,this);<br />
m_Dlg.SetWindowPos(this,100,500,400,300,SWP_SHOWWINDOW|SWP_NOMOVE);<br />
m_Dlg.ShowWindow(SW_SHOW);<br />
But not working.
|
|
|
|
|
|
D2 is displaying in the right side of D1.But it is not attached with D1.
When I move D1, D2 remains at same position. It does not bind with D1.
|
|
|
|
|
See these message :WM_MOVE and WM_MOVING.
|
|
|
|
|
Create a modeless dialog, and set it's property to behave like a child.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
set WS_CHILD style to D2
Are you have gtalk ? please add me: xiangyangzhao@gmail.com
|
|
|
|
|
Change the style as "child" in Styles tab of Dialog Properties. It might be now set as "popup". After that set "Control" in the More Styles tab and "Control Parent" in the Extended Styles tab.
|
|
|
|
|
Hi, I'm Not an expert, very few of us would claim to be.
Your problem appears not to be the drawing of the Dialog box, (that's quite simple) but the trapping of the event on which you want it drawn.
i.e. you want to trap the event of a user clicking on a Tree Control Item, by starting an event handler. That event handler should set up a Dialog box, and call it's DoModal().
Bram van Kampen
|
|
|
|
|
I am trying to do a chat room. How can I get the IP on which PC my server program is running automatically? Which method should I use?
|
|
|
|
|
struct hostent* phostent;
char name[128];
gethostname( name, 128 );
phostent = gethostbyname( name );
if( phostent )
{
CString strIP = inet_ntoa( *(in_addr*)phostent->h_addr_list[0] );
}
Are you have gtalk ? please add me: xiangyangzhao@gmail.com
|
|
|
|
|
Thank you for you answer firstly.I will try it.
Sorry that I don't use GTalk, but I use the GTalk ToolKit to joined you.
You can send me a mail:caiminsheng@gmail.com or join my QQ:113931427 if you would like to.
modified on Monday, December 24, 2007 5:36:46 AM
|
|
|
|
|
hi to all
i created a directory and want to change the location of that directory on a button click how is this possible
plz reply soon
|
|
|
|
|
You can use MoveFile API[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
first of all thank you for reply.My actual problem to moving directory, I am able to move file but how can i move directory
Plz reply
|
|
|
|
|
Do you read the documentation link?
It states:
Moves an existing file or a directory, including its children.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
ok thank you i have done it
|
|
|
|
|
|
Do you need to SetCurrentDirectory?
|
|
|
|
|
Hi , I am using .dll file of another company. they provide me the sample
that use LoadLibary method .but I do not want to use LoadLibrary Method. they also do not provide be import library . so can any one tell me how
to generate a import library from the .dll file
Trioum
|
|
|
|
|
|
I got the same solution before i read your reply. By the thanks indeed for your generosity.
But actually i wanted to know about using CArchive with CFile.
Regards,
Hemang
|
|
|
|
|
Hi,
What are the methods to skin the systray clock?
Thank you
|
|
|
|