|
Hi there,
If i generate an SDI application using CHtmlView and then try to display an
ActiveX Document developed in VB in the view then it seems that certain controls aren't repainted properly if the view is resized or is repainted.
For example, the borders of a ListControl or ComboBox in the ActiveX Documnet aren't repainted properly. Any suggestions?
|
|
|
|
|
I create some object in the dll and return from dll pointer to this object
but when i try to do with this pointer some operation for exemple get name of object that return CString address of this pointer not valid , may be dll return pointer to local dll address , becose usially from dll i receive 0x00000001 address for pointer and it not seem6 for me ok.How can i receive from dll valid pointer to object .
|
|
|
|
|
I want to use ListView_GetItem to read item informations of the ListView. And when this listview control is created in other process, the call failed, why? when I send message to button or edit or other simple controls in another process, everything goes well. somebody help me!
|
|
|
|
|
The new common controls' handles are not thread safe. The handles
are only valid in that process in which they are created.
As for the older controls microsoft supports them because
the old 16-bit code used a lot of this type of programming.
But the newer controls do not support that type of programming.
|
|
|
|
|
Thank you! I have found the solution in MSDN.
|
|
|
|
|
Hi Folks,
I am using the free Dundas tooltip class from Codeproject. I am using it with a ListCtrl and I want a tooltip to appear when the selection changes.
How can I do this? BTW the class is excellent - well done Dundas!
Cheers,
Davy
http://www.LateDecember.com
|
|
|
|
|
Hi,
The Dundas ToolTip control that you have mentioned was not designed to perform the functionality that you are looking for. I was able however to achieve this behavior with simple change to the source code.
Please send me an email and I will be able to provide you with more information.
Peter Zajac
Dundas Technical Support
|
|
|
|
|
CComboBox control at runtime?!!
thanx in advance
regards
Agnihothra
|
|
|
|
|
EnableWindow on the control.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
Remember that amateurs built the ark. Professionals built the Titanic.
|
|
|
|
|
Christian Graus wrote:
EnableWindow on the control.
Thanks CG!!
I'll try
Regards
Agnihothra
|
|
|
|
|
Just create a Control Variable by using the class wizard
and
yourControlVariable.EnableWindow(FALSE);will disable your combo..
Renjith CPian.
|
|
|
|
|
Thanks Renjith
Agnihothra
|
|
|
|
|
I'm writing an application that needs to change the font of MessageBox(),because the default font of it seems too small for me. How Can I do it?
Thanks in advance!
lilun
|
|
|
|
|
I dont think that you can do that, as it is a System
wide thing. But you could have your own message box.
There are some articles here at CP.
|
|
|
|
|
|
You can get the message box's window handle(maybe by its title or another way),then you can use CWnd::SetFont to change the font of MessageBox()
|
|
|
|
|
I have a application that uses URLDownLoadToFile. The problem is that the file downloaded gets cached and when the program is run again, it does not re-download the file, I need a way to download a new file everytime I call the function, not just use the cached one. THANKS
|
|
|
|
|
This is a dirty hack:
Try appending a '?<random number="">' to the URL. For example if the url is:
http://server/file.zip
change it to:
http://server/file.zip?37490394
James
Drinking In The Sun
Forgot Password?
|
|
|
|
|
Thanks! Works great. I know this is a dirty hack, but it will work as long as I use a question mark and a random number right? Why does this work, what does the question mark do?
Thank you!!
|
|
|
|
|
Question mark in a URL is used to pass parameters to a web server. When parameters are not needed, the webserver ignores them. Whoever is doing the caching does not detect that this file has been downloaded already since the URL is different each time. So basically you are fooling the caching mechanism into thinking that a different URL is requested each time.
Drinking In The Sun
Forgot Password?
|
|
|
|
|
Well it's a sweet hack . Thanks again. Everything is working perfectly.
|
|
|
|
|
Lets see is three times the charm will work with this problem. I'm getting close to a solution, but I'm not seeing it. I'm trying to get {right now ANYTHING!!!!} to be place into an MDI document and then displayed on the screen. I have tried several things, here is my latest try:
I have a menu item labeled InsertText, for that function, I have the following code:
void CMyAppView::OnTestingInserttext()
{
CMyAppDoc* pDoc = (CMyAppDoc*)GetDocument();
CDC* pDC;
CString outtext;
outtext="This is a test";
pDC->TextOut(outtext); I think part of my problem is here
pDoc->UpdateAllViews(NULL);
}
I then have the following code placed under OnDraw():
{
CMyAppDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
}
What am I doing wrong? When I place TextOut(0,0,outtext), it compiles, but then when I click the Insert Text, I get a DLL GPF error.
How do you get the current cursor position and then use that for the TextOut command? I'm using an EditView MDI, please help, I'm about to give up on C++ and go back to VB.
|
|
|
|
|
|
AHHHH!! I'm starting to like that location, perhaps I should build a house there.
Ok, so how do I initialize it correctly? Would I use the CMyDoc::GetDoc() and CMyView::GetView()? How do I get the pDC to point to the correct location using these? I have them programmed, just not used yet.
Other than that, am I coding the process correctly, other than getting the current position?
|
|
|
|
|
I don't understand why you need draw it from document.Set value in the doc,call from doc to updateallviews and in the view OnDraw call to
and call to dc->textout(pdoc->getvalue()).
Good luck.
|
|
|
|