|
|
PLease see MSDN:
CInternetSession and
CFTpConnection
CFtpFileFind
You will get everything in MSDN with the samples....
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Hi,
Is there any way to set the backgroud as an Image to a Dialog?
|
|
|
|
|
Sure... you can do it by drawing the image on OnEraseBkgnd or OnPaint, or by placing a picture static control with the same size of the dialog.
- NS -
|
|
|
|
|
Hi,
It is working. But when I try to add 'Microsoft FlexGrid Control, Version 6.0' on that dialog & run the application; then FlexGrid Control is not visible on that dialog.
Do you have any solution to show FlexGrid Control on a Dialog having background image.
Thanks,
Aniket
|
|
|
|
|
What did you do? I think you used a picture static control, right?
- NS -
|
|
|
|
|
Hi,
Yes, you are right. I use Picture Contol with 'Bitmap' Type & on that I place 'FlexGird' Control.
What is the proper way to do it?
I dont what to write in OnEraseBkgnd or OnPaint & how to use them.
Thanks,
Aniket
|
|
|
|
|
Try this
GetDlgItem(IDC_STATIC_BMP)->ModifyStyle( 0, WS_CLIPSIBLINGS );
- NS -
|
|
|
|
|
Try this
GetDlgItem(IDC_STATIC_BMP)->ModifyStyle( 0, WS_CLIPSIBLINGS );
I forgot to say that it should be placed in OnInitDialog
- NS -
|
|
|
|
|
Hi,
Thanks for
GetDlgItem(IDC_STATIC_BMP)->ModifyStyle( 0, WS_CLIPSIBLINGS );
What this statement do?
I add this line in 'OnInitDialog()', but there is no any progress.
'FlexGrid' control is not visible. Actually it is behind that image. And I am trying to display 'FlexGrid' on that image.
Thanks,
Aniket
|
|
|
|
|
I didnot try it using FlexGrid, but it is working for ListBox and Picture control.
WS_CLIPSIBLING style will make the picture control to be clipped by the other sibling controls.
Now you can:
1. Make sure that there is no transparency style is set to picture control.
2. Try to change the tab order also.
3. If it does not fix the problem, try to set the FlexGrid to top of the picture control in zorder using SetWindowPos.
And please let me know the status
- NS -
|
|
|
|
|
Hi,
Thanks, atlast it work by changing Tab Order & changing style of picture control to WS_CLIPSIBLING. But I can't do it by setting Z-Order of 'FlexGrid' in SetWindowPos().
Thanks once again for giving your valueable time.
Aniket.
|
|
|
|
|
Try looking on a wonderful site called codeproject!
A simple search[^] with the terms dialog and bitmap gives a nice list - the first item is an article by Nish, which means its guaranteed to be good.
Iain.
|
|
|
|
|
Hi,
Can any one give me the link for VC++ questions and answers that are import for the interview.
Cheers
Archana
|
|
|
|
|
|
RajArchana wrote: Can any one give me the link for VC++ questions and answers that are import for the interview.
please follow to link mentioned just beneath my name!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Look at the links on my previus post
you are on position number 2 and 3,... but it wasn't a Formula1 race!
|
|
|
|
|
_Russell_ wrote: but it wasn't a Formula1 race!
ohh I lost
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have written static function and i am calling UpdateData() from this static function. It's giving error - Can't call non-static from static.
What is the solution? Please help me.
|
|
|
|
|
Don't use a static function to host code which requires access to per instance state.
Steve
|
|
|
|
|
In addition to Stephen's answer: static member functions are not 'owned' by a particular instance of a class (they are 'shared' across all instances in fact). So this means they cannot access non-static member functions or variables (because this will require to know with which instance of the class they are dealing, which is impossible).
So, why do you need to have a static function ? Is there a specific reason for that ? I guess that you can simply change it into a non-static one.
If not, then provide more informations.
|
|
|
|
|
If you cannot change the static function to and non-static, from where is this static function called? Does it have the HWND of the dialog?
- NS -
|
|
|
|
|
No, it doesn't have the HWND of the dialog.
Anyway I have converted from static to non-static. It is working.
Thank you very much for the help.
-- modified at 4:05 Thursday 11th May, 2006
|
|
|
|
|
NS17 wrote: If you cannot change the static function to and non-static, from where is this static function called? Does it have the HWND of the dialog?
UpdateData from different Thread or point brings lot of problems!.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
You are right... You got what I aimed to do. Anyway what is your suggestion in such a situation?
- NS -
|
|
|
|