|
import the ActiveX component in your project...
|
|
|
|
|
thank you for your reply
but that is not what required.......
Any way i have cleared my issue
Regards
RinuRaj
|
|
|
|
|
Rinu_Raj wrote: that is not what required
not only i won't do things you could do for you, but the explaination is very poor. you don't tell what you wan't exactly, i mean, with details !
Rinu_Raj wrote: Any way i have cleared my issue
good ! then shared how you solved it !
|
|
|
|
|
i thought that there will be some complexity in converting a ocx to exe but i was wrong. I have a Dialog in my ocx anc class associated to it. So I inserted that dialog ( resource ) and dialog class to another Dialog based application and set this dialog object as the mainwindow.
Thanks
Rinu Raj
|
|
|
|
|
Rinu, i think you didn't understand my first post then...
Rinu_Raj wrote: I inserted that dialog
that's what i was saying as "importing the ActiveX (ocx) component in your project...
Rinu_Raj wrote: to another Dialog based application
...and place it in your window".
|
|
|
|
|
You have a ocx code and you want to convert this code a exe file,right?
|
|
|
|
|
Yes thats it .
I have done it. I thought that there will be some complexities but nothing was ther.
Thank you any way
Rinu Raj
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
Hi
Cannot add a command handler from properties side panel.
I got the follow error "Add/Remove operation is impossible,the code element '(null)' is read only"
When i create a new class with vs2005 works perfect. Does not work on classes created on vs2003.
A solution is to create a new project/solution, is there anything else to try?
Thanks in advance for any help
George
|
|
|
|
|
Just try porting .vcproj file only. Deleting .sln and user options file.
|
|
|
|
|
Seems the file you are trying to Add/Remove interface is read only.
Check that
-Sarath.
The more you can dream the more you can do - Michael Korda"
|
|
|
|
|
Hi:
the following is a main codes of shutter show an image, i would like to stop this show in any show process.so how to write such codes? urgent!!!!!!!!!!!
if(!pDoc ->statedoc&&state2==1)
{
BYTE* pBitmapData = CDibNew1->GetData();
LPBITMAPINFO pBitmapInfo = CDibNew1->GetInfo();
int bitmapHeight = CDibNew1->GetHeight();
int bitmapWidth = CDibNew1->GetWidth();
if (CDibNew1->GetRGB())
{
CPalette * hPalette=CreateBitmapPalette(CDibNew1);
CPalette * hOldPalette =
pDC->SelectPalette(hPalette, true);
pDC->RealizePalette();
for(int j=0;j<=bitmapHeight/10;j++)
for(int i=0;i<=10;i++)
{
::StretchDIBits(pDC->GetSafeHdc(),0, i*bitmapHeight/10, bitmapWidth,j,0, (9-i)*bitmapHeight/10, bitmapWidth,j,
pBitmapData, pBitmapInfo,DIB_RGB_COLORS, SRCCOPY);
Sleep(10);
}
pDC->SelectPalette(hOldPalette, true);
::DeleteObject(hPalette);
}
else
{
for(int j=0;j<=bitmapHeight/10;j++)
for(int i=0;i<=10;i++)
{
::StretchDIBits(pDC->GetSafeHdc(),0, i*bitmapHeight/10, bitmapWidth,j,0, (9-i)*bitmapHeight/10, bitmapWidth,j,pBitmapData, pBitmapInfo,DIB_RGB_COLORS, SRCCOPY);
Sleep(10);
Li Zhiyuan
13/09/2006
|
|
|
|
|
li zhiyuan wrote: urgent
Aren't they all ?
Make this code run in another thread. Have a stop flag, a bool that you check before StretchDIBits, which can be set from your main thread, and tells this thread to stop.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I try to to realize Thumbnail view, using CListCtrl. The bug is that items are selected even if I click near the item region to right or left. I was surprised that this bug is also present in AcdSee 7.0 but in windows explorer it doesn't occur. How fix it?
happynomm
|
|
|
|
|
I test it in my mechine. Both the explorer and my sample aplication behaves similarly. As u said the items is getting selected when u click near( very near ) to item right or left. Which version of "comctl32.dll" r u using. I test it in version 5.
nave
|
|
|
|
|
Thanks for your answer, Nave.
I test it under Windows XP SP1 and Comctrl32.dll version 6. I try it under Windows 2000 with Comctrls32.dll version 5 and it's all right as you said. It is possible to use version 5 under XP?
happynomm
|
|
|
|
|
if u remove the manifest file from the project, it will be using the version 5 of the Comctrls32.dll.
I test the same code in windows sp2. And that too is working fine here. If possible plz check that too.
nave
|
|
|
|
|
How can we customize a File Dialog ?
Please reply any source code links.
Thanking you
|
|
|
|
|
|
Here you go http://www.codeproject.com/[^] tons of source code their, browse through I'm sure you will come across the terms "subclassing", "ownerdrawn", "customize", "cfiledialog" somewhere in there.
|
|
|
|
|
HelloGuysHelpMe wrote: How can we customize a File Dialog ?
Readthis[^]. There is a section called Open and Save As Dialog Box Customization . Read that for more information.
|
|
|
|
|
WTL has such a class.
Steve
|
|
|
|
|
See here[^] maybe it is some helpful to you
|
|
|
|
|
I am new to this. I am using a CMonthCalCtrl contol. It works fine but when I click on a day I can not capture the event to highlight the day to show the user that it has been selected. (example: I click on the 5th and I want the 5th to be highlighted. I have tried to use the following event handlers:
afx_msg void OnMcnSelectMonthcalendar(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnMcnGetdaystateMonthcalendar(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMReleasedcaptureMonthcalendar(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnNMThemeChangedMonthcalendar(NMHDR *pNMHDR, LRESULT *pResult);
None seems to capture me clicking the 5th on the control. Do you have any ideals on what I could do to solve this problem?
RedSwampFroggy
|
|
|
|
|
How about GetCurSel() and SetCurSel() , but if you want to catch the actual mouse click then add a handler for the mouse button and use HitTest()
|
|
|
|