|
You can find these articles on the Folder/File section and CTreeCtrl section
|
|
|
|
|
deeps_cute wrote: -one CTreeCtrl in left side of the dialog
-if we select one item in the tree it have to list the contents of a folder
my general idea would be look at CTreeCtrl Class and CFindFile class
|
|
|
|
|
Probably because you don't seem to be putting in any effort yourself - you seem to want someone here to write your program for you.
In one of your earlier posts someone pointed you to the TreeControl section of codeproject. A quick check shows
PathPicker[^]
that seems to have all the functionality you need for the tree control. There may be other ways to start - it's your program after all.
If you tried to get PathPicker going with an associated listbox that you fill with the contents of the directory you choose, and when you have specifc problems come back and ask, I'm sure you will get an answer.
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Dear all.
Now I doing a project with MFC, so I would like ask you how to call child frame with any location (x, y) in the Main frame. Notice that when I called the child frame No.1, it locates at the left corner of Main frame and when I continue to call the child frame No.2, it appears at the same location of child frame No.2. Thank in advance all.
|
|
|
|
|
What about SetWindowPos ?
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.
|
|
|
|
|
First the child frame will be locate at pixel 0x0 and then call the seconde chid frame at position 320x0. I'm just strt with VC++ so please show me more detail thank very much all
|
|
|
|
|
Something like this?
CRect WindowRect;
pChildFrameWnd1->GetWindowRect(&WindowRect);
pChildFrameWnd1->MoveWindow(0, 0, WindowRect.Width(), WindowRect.Height());
pChildFrameWnd2->GetWindowRect(&WindowRect);
pChildFrameWnd2->MoveWindow(320, 0, WindowRect.Width(), WindowRect.Height());
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I've looked at all the tutorials for using tcp and sockets with C++. But all of them either give me code errors or linker errors when I try to compile and test the example programs. Does anyone know of a tutorial that works?
oh yea I'm using Visual C++ 2005 express edition.
|
|
|
|
|
|
I've installed the platform sdk. and the linker errors are about something called symbols
|
|
|
|
|
Show the actual error messages and the code that's causing them.
|
|
|
|
|
Can u list the compile error or linking errors. So as to let u know the exact cause. Till then happy coding...
Get the facts or facts will get you and when you get them, get them right or they will get you wrong.
Happy Coding
|
|
|
|
|
Also if the tutorials are MFC then they won't work with VS2005 Express.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I am doing a project with VC++ 6.0. I want a bitmap picture can move. What I must do? Help me!!
My Email:quocviet_dhspkt@yahoo.com
Thank you very much!
Love You Much!
|
|
|
|
|
You only need to re-draw this picture at appropriate position. For example, now it's at (10, 10, 20, 20), if you want to move to (100, 100, 110, 110) you will must draw this picture at new position
My English is not good, so you mayn't understand what I said.
|
|
|
|
|
If you are not using any control (as in whitesky response), instead of re-drawing the whole dialog you can redraw the previous and current rect positions of the picture, you can use InvalidateRect(..) for this or you can use Double Buffering technique. These tips is for, to avoid flickering, nothing more...
Do your Duty and Don't expect the Result Rate this Post, if I helped You
|
|
|
|
|
yeah, I 'm accept that using Invalidate will make flickering, so I rarely use it. But I think double buffering isn't supported in VC++6.0.
Regards,
Vinh
|
|
|
|
|
vinhie47 wrote: yeah, I 'm accept that using Invalidate will make flickering, so I rarely use it
I just add a note to ur reply, to the person, who poseted the question.
vinhie47 wrote: double buffering isn't supported in VC++6.0
I'm afride not.. double buffering is a concept, which will use normal BitBlt and SelectObject methods.
Do your Duty and Don't expect the Result Rate this Post, if I helped You
|
|
|
|
|
First, thanks a lot to you!
If I use InvalidateRect(...), I won't avoid flickering.
The client will be flickered because I load much bitmap.
And I want bitmap picture can move which depend on time.
I uses 2 functions: GetPixel(..) and SetPixel(..)
Before load bitmap, I use GetPixel(..) to save pixel colors of range which bitmap will be drawn.
In message WM_TIMER, I use functions:
-Clear(): uses SetPixel(..) to set pixel color which saved before.
-Move(); to move bitmap.
-GetPixel()
-Draw():load bitmap
But the results do not succeed.
I don't know Double Buffering technique. Can you help me about this technique. Thank you!
I will send my project for you. Please help me!
|
|
|
|
|
My project comment such as:
* A class CBall: to load,clear a bitmap picture of ball.
//Pixel: to get pixel color of range of rectangle of bitmap.
//nWidth,nHeight: width and height of bitmap.
void CBall::Pixel(HDC hdc)
{
int i,j;
for(i=0;i<this->nWidth;i++)
for(j=0;j<this->nHeight;j++)
this->pixelColor[i][j]=GetPixel(hdc,this->nXDest+i,this->nYDest+j);
}
//Draw: Load bitmap
//nXdest,nYDest: co-ordinate upper-left of bitmap
void CBall::Draw(HDC hdc,HDC hdcMem)
{
SelectObject(hdcMem,this->hBitmap);
BitBlt(hdc,this->nXDest,
this->nYDest,this>nWidth,this->nHeight,hdcMem,0,0,SRCCOPY);
}
//Clear: to clear bitmap
//By uses SetPixel() function to set pixel color which get before
void CBall::Clear(HDC hdc)
{
int i,j;
for(i=0;i<this->nWidth;i++)
for(j=0;j<this->nHeight;j++)
SetPixel(hdc,this->nXDest+i,this->nYDest+j,this->pixelColor[i][j]);
}
//Move: to move bitmap
void CBall:Move()
//In main file of project:
*WM_PAINT:
//Call function
ball.Pixel(hdc);
ball.Draw(hdc,hdcMem);
*WM_TIMER:
//Call function
ball.Clear();
ball.Move();
ball.Pixel();
ball.Draw();
//But after clear bitmap, bitmap isn't re-drawn.
//I can't understand. Help me!
//I will send my project for all you if I know your email address. Thanks!
|
|
|
|
|
Did you use of a Static Control for show bitmap if yes you can use of MoveWindow
|
|
|
|
|
Within my application running on my pc, I wish to browse to files on a connected mobile device using a standard windows open file dialog. Browsing to My Computer does not allow me to select the mobile device, although it does using Windows Explorer. Is there some setting, or some way I can configure the open file dialog to browse to such a system folder?
|
|
|
|
|
I'v tried to connect two computers using sockets... it works between computers in the same LAN, and between computers in the same internet subnet.
But, when i try to connect to computers that are far away in the internet(at another city), the connection fails; it simply doesn't reach the listening computer.
I've heared about public and private IPs is this the problem??
How may I fix it up??
Thanks in advance!!
|
|
|
|
|
if the remote computer is connected to a router you will have to setup port forwarding on the router. E.G.
something that wont work:
----------------------------
Remote computer(client)
|
Router(without port forwarding)
|
Remote computer(server)
-----------------------------
something that will work:
-----------------------------
Remote computer(client)
|
Router(with port forwarding)
|
Remote computer(server)
-----------------------------
|
|
|
|
|
well, the connection works through the router cause i can connect to other computers in the internet that are in the same city...
connection doesnt work connecting to computers in another city...
may it be a problem between nodes??
my public ip (i get it from www.whatismyip.com[^] ) is the same as all other computers i use in my connection so i cannot use this ip because i dont connect to any concrete computer.
i dont know what to do...
|
|
|
|