 |
|
 |
Hi,
I was just create a ATL COM dll with Deskband and when i was try to register with Vista , it did not register on Vista machine it work fine in Winxp machine.
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
Thanks Erik,for developing such a great wizard.
It helped me lot in my project.
Thanks
|
|
|
|
 |
|
|
 |
|
 |
I have installed ,but there isn't icon like above,why?
|
|
|
|
 |
|
 |
I have the similar problem.
I didn't see the deskband icon in the window.
what's the wrong?
thank you!
|
|
|
|
 |
|
 |
I had this problem when the DLL was registered in a directory different to where VS was actually installed. The MSI installer didn't put the files in the right place for me (c:\Program Files\Microsoft Visual Studio\..., which for me is wrong). I downloaded the zip and installed the files in the right place and did the regsvr32 by hand.
|
|
|
|
 |
 | Hello  |  | Anonymous | 2:28 26 Apr '05 |
|
 |
i am a programmer how i can help you
|
|
|
|
 |
|
 |
Created window with ATL Object wizard( Original Class Name Button). I got button to display, but i can't now matter i try to draw anything on it. I can add all the window elements to that button like scrollbar and it responds to pressing. But i can't display image or text. Primary would to display image. But i can add other elements like combos and editboxes in that window. I create that class on toolbar like so:
RECT rect2 = {150,0,300,100};
mLogo.Create(m_hWnd, rect2, NULL, WS_CHILD|WS_VISIBLE|BS_FLAT| BTNS_BUTTON | BTNS_AUTOSIZE | BTNS_SHOWTEXT , 0,IDM_HOMEPAGE_WIN);
Any ideas ?
|
|
|
|
 |
|
 |
BTNS_BUTTON |BTNS_AUTOSIZE | BTNS_SHOWTEXT are all for toolbar buttons, you have created a button not a toolbar button that resides on a toolbar. If you want to draw on it try the BS_OWNERDRAW and respond to WM_DRAWITEM or try BS_BITMAP and just set the bitmap for the button to use after it's created.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
 |
|
 |
Hi!
i m facing a problem while building a control in ATL with events.
i use a MFC-CWnd derived class in a ATL-Full Control class.
The call of the MFC-CWnd derived class is within the MFC-CWinThread derived class. The MFC-CWnd derived class also have a paability to recieve window messages like OnPaint(), OnClick(), OnLButtonDown() etc...
I want to transfer the OnLButtonDown message to ATL-control class's some event
But i couldn't do that i don't know how is pass this message to ATL class while there is no relation b/w all classes
Means ATL call MFC-CWinThread class which further call MFC-CWnd class
Also how i get the HWND of the window that contains the control?
|
|
|
|
 |
|
 |
Saeed,
I am not sure that I am following what you are trying to ask but here is what I think you are trying to do. You have 2 classes one ATL and one MFC derived. They are both "window" classes and you want them to communicate with each other. The easiest way is to make them know about each other and call methods on each. If they are on different threads then information will likely need to be thread protected. If they are in the same thread and just want to chat through the window messages you have stated then you could just make each class know about the others HWND and post messages to each other when needed.
For your last question I don't have any context information. I dont' know where the window got the control or what you are trying to do with it. If the control has a HWND and is parented to the window that it is in and is the only window that is parented to then you could enum the child windows in the window that contains the control which would result you in the HWND of that control.
Cheers,
-Erik
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
 |
|
 |
Will you port your excellent wizard for VS.NET/ATL7?
Preferred storyline:
- I am your father. Search your feelings and you'll know it's the truth. Together we can rule this galaxy like father and son.
- Ok dad. Let's kick some butt!
|
|
|
|
 |
|
 |
I'll look into it.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
 |
|
 |
I would also like this supported in .Net... Has any progress been made?
oh and thanks for making so many useful tutorials
|
|
|
|
 |
|
 |
Dear Erik
I download your source code for adding an IE Toolbar.
It's a great and perfect sample code that I found so far.
I visit one problem:
- When I unregistered dll, "Motley Fool” Button on the standard Buttons toolbar exist and
don't removed. why?
1- I have an idea to create an IEToolbar for us. I know your source code is free,
can I use from your source code to create an IEToolbar for myself?
2- I am a beginner in C++ programming and would like to go a professional programmer
like you. Can u know any good tutorial for visual c++ focused on ATL, COM, ISAPI and so?
3- Can you help me to any change on your code?
1-1 I want to add drop down menu on button like google and yahoo bar.
1-2 I want to create toolbar for my language (Persian) but I do it on your code
and don't work as well as? Do you have any idea to change language of text?
omid
http://www.shygunsys.com
|
|
|
|
 |
|
 |
Omid,
The unregistering of the DLL isn't completely correct, it doesn't clean up the toolbar button upon release. Also unregistering it only removes the toolbar on future instances of IE; so if you have a instance of IE running prior to unregistering it, the toolbar button will exists until the next fresh instance of IExplore.exe is run.
1. yup the code is free, use it as you wish.
2. I don't know of any good tutorials online but there are a load of books; there may be other tutorials online about some of the areas you are looking for on this site. For ISAPI look at ATL Servers, and Michael Dunn has written a collection of COM related articles if I recall.
3. (1-1) Just turn on the TB_STYLE so that it is a dropdown and respond to messages from the toolbar button accordingly. (1-2) Language changes just require using Wide-Char's and correct character codes with a resulting Language in Regional settings. Internationalization is always tedious and haven't done a lot with it.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
 |
|
 |
Hi, I can not download "9x and NT MSI Installer". I tried to download it many times from http://www.codeproject.com/atl/rbcwindowimpl.asp URL. The getRight or netAnts cannot even start downloading it. Please help me with this. Thanks Faisal
|
|
|
|
 |
|
|
 |
|
|
 |
|
 |
How would I go about drawing a drop-down menu from the button. Provide a button where "The Motley Fool" appears.
I'm a kind of intermediate ability MFC guy, but this is my first forray into ATL, can I include MFC support when creating the ATL project, and then go about drawing a context menu as you would in MFC, or is there another way to do it.
Thanks,
Paul
|
|
|
|
 |
|
 |
What happened to www.radbytes.com ??
My browser can't find it. It can ping it, but not browse it..
|
|
|
|
 |
|
 |
yeah my browser can't find radbytes.com as well....will anybody help me here plz...i kindly request...
regards
Nabeel
|
|
|
|
 |
|
 |
Hi.
I did regsvr32 rbdeskband.dll and regsvr32 rbwindowimpl.dll. But when I insert a new atl object I can see CwindowImpl and DeskBand Text but I can see CwindowImpl and Desband Icon. When one of this is selected I get "Sorry! an error ocurred while generating the object". What Happend?
Thanks and Sorry for my english
MadNet
|
|
|
|
 |