|
Hi
I have set a Background image for my ActiveX ( ATL Composite Control) and it has some static text boxes. To make them transparent i did the painting of the static text controls ( in WM_PAINT). I.e after setting the image in OnEraseBkGnd(), i invalidated the static controls whose WM_PAINT is handled. This will TextOut the text above the BG image. But when i put this in web page, it seems that the OnEraseBkGnd() is calling frequently and thus the static control paint everytime, creating flickering of the static controls ( controls blink's).
Also when i call SetWindowText() to set new string in static control, I have to call Inavlidate() the whole control to make the new text display correctly. If i just call invalidate of static control, it overwrite the old text. Next painting of the window will solve this!!
How to solve these issues?
i have used this CP link to set background.
|
|
|
|
|
There is a OnCtlColor Member of CWnd, in which you can set the backmode to transparent.
Greeting from Germany
|
|
|
|
|
I did try with WM_CTLCOLORSTATIC, i could change the bgmode & color
Not able to make it transparent. I did have to draw using WM_PAINT
M_CTLCOLOR is not fired,I think it is due to ATL non MFC
anil
|
|
|
|
|
When a client using shared data from remote machine.It is very fast .But with server for same it is taking more time.
The packet transmission is 300 per share data and for server 1500 as per net stat result.
As my packet size is small i disable nagle algorithm also.but not satisfied result.So Please give some guidance.
Regards
Sabita
|
|
|
|
|
Hello all,
I have created a player using active x control in vc++ 6.0.
Once the user clicks the button to download the player,the Activex player's Dll will be installed and it will the play the video.
My problem is if i update the Dll with newer version,
1.How do i delete the older version of player from Users System
2.Can i do it Automatically.
3.Is there any way of updating older versions with newer version?how can i do that
Please help me..
Thanks in advance
cheers
sangeet
-- modified at 1:42 Tuesday 25th April, 2006
|
|
|
|
|
hi,
Register the new Activex using regsvr32 in command prompt which will look after every thing. silly question.
thanks,
uday.
uday kiran
-- modified at 1:49 Tuesday 25th April, 2006
|
|
|
|
|
Hi
I registered the new Activex.Also I changed the version number in codebase in <object> tag.And i updated this new version dll to server.
but my problem is ,
Eventhough the Iternet explorer is showing the dialog box to install new version,the new version is not installed and the player is using the older version.
Please help me ..
May be it is again a silly question for u
Thanks in advance
cheers
ramya
-- modified at 4:45 Wednesday 26th April, 2006
|
|
|
|
|
IIUC you packaged the control into a CAB and are installing it via the <object> tag? When you release a new version, update the version numbers in the DLL's version resource, and update the version numbers in the INF file (packaged inside the CAB) to match. Then on the web page, update the version field in the codebase attribute to match. IE will do the rest.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Can u answer me how you play movie? Is ur ActiveX is MFC or non MFC (ATL only?)
Using DirectX or VFW?
Which types of movie u can play?
If u can share the code, it would be helpful for me
Thanks in advance
|
|
|
|
|
Hey everyone:
I want the user to choose when they close down my application, so I listen for user input... but these pesky IM windows always interrupt my app and steal focus. I've tried not responding to the following messages.... then I tried what you'll see below.
I thought by handling them I'd be OK... but IM windows (from Gaim for instance) totally kills focus of my program. Thoughts? Thanks!
case WM_KILLFOCUS:
case WM_QUIT:
case WM_CLOSE:
case WM_DESTROY:
return(DefWindowProc(hWnd, message, wParam, lParam));
|
|
|
|
|
You can't prevent your window from losing focus to something else. Imagine if two programs did this - they would constantly be fighting over which one is the active window. What is it about your app that makes you want to prevent other windows from being active?
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I can imagine the problem you describe. However I've seen some applications deal with it, and not yield control. I'm building a simple screensaver which I think shouldn't be interrupted by such trivial things as IM windows. You still hear the noise afterall.
So I *know* there is a way, because I've seen programs that don't change focus when another window requests it.
So how do you do it? :P
|
|
|
|
|
Well, a screen saver is a special case (in NT at least). The screen saver runs on its own desktop, so it will be the only window visible no matter what, because the interactive desktop won't be visible.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I am having two listctrls. I am not using the default scrollbars of listctrls(I am just hiding it)i want to use a seperate VScroll bar which simultaneously work on both listctrls.
How can I do this?
Thanking you in advance.
Sandeep A.C
Sanc
|
|
|
|
|
|
Hi,,
In my Project I have main Dialog DesktopSearchDlg
CreateDlg & UpdateDlg.
In CreateDlg I am accepting File Name on Ok I have to add the file name to UpdateDlg in a combo box
Can any one please tell me how to do this.
CreateDlg UpdateDlg
File Name onOK ( ) ComboBox
Regards,
Parichay.
|
|
|
|
|
hi,
steps to capture the filename from the first dialog (CreateDlg)
1) store the Filename in the CString Variable before the Ok Button was Pressed.
2) In OnInitDialog of the Second Dialog i mean (UpdateDlg) create a an Object of the First Dialog (CreateDialog) :
//==============================================================
(ie) CreateDialog *mpmain = (CreateDialog *)GetParent();
CString str = mpmain->filenamemembervarialbe;
ComboBox.Addstring(str); //Adding to ComboBox in SecondDialog
//==============================================================
over, Good Luck.
uday.
uday kiran
|
|
|
|
|
Hi,
Thanks for the reply..
I just store the file name as below
void CCreateDlg::OnOk()
{
CString fname;
fname=m_FILE_NAME;
--
---
---
}
Now in the UpdateDlg In the
BOOL CUpdateDlg::OnInitDialog()
{
}
----
I want to know what is *mpmain ??? is this MainDialog window ???
|
|
|
|
|
hi,
yes it is Main Window Dialog you are correct. also when you want to access the Mainwindow Dialog in second dialog dont forget to include the first dialog header in second dialog.
ie (i mean) # include "firstDialog.h" in the second Dialog.
good luck.
uday.
uday kiran
|
|
|
|
|
Hi,
I am bit confused now. In my project the main Dialog is CDesktopSearchDlg
after that i have CreateDlg & UpdateDlg.
//Uday
firstDialog.h" in the second Dialog.
//
i want to which is first dialog and which is 2nd dialog.
Is this code below correct ??
BOOL CUpdateDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CreateDlg *CDesktopSearchDlg = (CreateDlg *)GetParent();
CString str = CDesktopSearchDlg->fname;
m_UPDATE_FILE_NAME_COMBO.AddString(str);
}
|
|
|
|
|
hi,
there is no confusion at all, from which dialog you want to access the control values ((ie) the String value of the File Name) just create an instance of the dialog and access the control values.
good luck.
uday.
uday kiran
|
|
|
|
|
can u please tell what is the error ??? is this below code correct???
-> error CCreateDlg *CCreateDlg = (CCreateDlg*)GetParent();
CString str = CCreateDlg -> fname;
m_UPDATE_FILE_NAME_COMBO.AddString(str);
--------------------Configuration: DesktopSearch - Win32 Debug--------------------
Compiling...
UpdateDlg.cpp
D:\Parichay\DS with Help\DesktopSearch\UpdateDlg.cpp(146) : error C2059: syntax error : ')'
Error executing cl.exe.
DesktopSearch.exe - 1 error(s), 0 warning(s)
|
|
|
|
|
|
can u please tell what is the error ???
-> error CCreateDlg *CCreateDlg = (CCreateDlg*)GetParent();
CString str = CCreateDlg -> fname;
m_UPDATE_FILE_NAME_COMBO.AddString(str);
--------------------Configuration: DesktopSearch - Win32 Debug--------------------
Compiling...
UpdateDlg.cpp
D:\Parichay\DS with Help\DesktopSearch\UpdateDlg.cpp(146) : error C2059: syntax error : ')'
Error executing cl.exe.
DesktopSearch.exe - 1 error(s), 0 warning(s)
|
|
|
|
|
hi parichay,
change the Class instance and Class to Different values. you are using CCreateDlg class name and Member varible as same which is confusing. please change the values as
//==========================================================================
CreateDlg *pCreateDlg = (CreateDlg *) GetParent();
CString szStr = pCreateDlg->fname;
//==========================================================================
check with it.
good luck,
uday.
uday kiran
|
|
|
|