|
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 -
|
|
|
|
|
NS17 wrote: . You got what I aimed to do. Anyway what is your suggestion in such a situation?
create a userdefined message, and from the static funtion post that message to the to dialog for updating the data from/to the Dialog box
"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
|
|
|
|
|
Yes... Thank you.
- NS -
|
|
|
|
|
I checked many functions to do the same but i could not... i want the help to copy a folder and a file to another folder using a FTP connection... can any one help to do the same...awaiting your reply
|
|
|
|
|
Vivek krishna wrote: . i want the help to copy a folder and a file to another folder using a FTP connection... can any one help to do the same...awaiting your reply
there is no such function exist in Unmanaged VC++. you have to implement the logic urself for same, i.e. you have to create directory on remote servers ( CFtpConnection::CreateDirectory) and using CFtpConnection::PutFile you can recursivly put file on remote server!
"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 tried the same but what happens is the file copies separately in the same place where the new folder created not inside the created folder.
pConnect = sess.GetFtpConnection(m_host,
m_user,m_pswd,atoi(m_port),false);
CFtpFileFind finder(pConnect);
pConnect->CreateDirectory("sample");
BOOL bWorking = finder.FindFile(_T("*"));
strFileName += m_host;
strFileName += finder.GetRoot();
MessageBox(strFileName);
BOOL bUploaded = pConnect->PutFile("C:/070206_NewVExls.xls",
"ss",FTP_TRANSFER_TYPE_BINARY,1);
if(bUploaded==0)
MessageBox("unsucess");
|
|
|
|
|
Vivek krishna wrote: I tried the same but what happens is the file copies separately in the same place where the new folder created not inside the created folder.
You need to change directory on the remote server, otherwise it won't know you need to put the files in a different place. FTP does not stand for File Transfer (Psychic).
Iain,
|
|
|
|
|
i tried to change directory using "SerCurrentDirectory()". but i m not able to change
|
|
|
|