|
Hi,
thanks alot, but I think that's not what I really need, I want a thumbnail preview in explorer that Windows XP already offers for variuos filetypes, for example JPEG pictures: when I set the view to icons or tiles in explorer, I see a real preview of the image inside. My application is some sort of a CAD program with its own filetype, and I would like to render preview thumbnails the same way.
How is it done in explorer? How can I make it work the same way as for JPEGs in XP and Vista?
|
|
|
|
|
|
Maybe take a look at this[^] for starters.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
There are in header files or in MSDN such windows errors starting from 0xC.
Чесноков
|
|
|
|
|
You've failed to ask us a question, so unfortunately we fail to bring you an answer
|
|
|
|
|
|
There's even a website with that name [^] (i.e. Have you googled for?).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
I am using visual studio 2008 and MFC dialog based application.
I would like to enumerate all the drives in my computer and show the name of the drive in the list box. Currently I am using "GetDriveType" API to get the drive is valid or not.
I want to show the user friendly name of the drive, for example "C:\" comes "Local Disk (C " in my computer. How do I get the user friendly name from the disk letter("C:\")?
Thanks in advance.
Mutpan.
|
|
|
|
|
Hi All,
I got the solution. We should use SHGetFileInfo API to get the display name.
<br />
SHFILEINFO shFile;<br />
SHGetFileInfo(_T("C:\\"),FILE_ATTRIBUTE_NORMAL,&shFile,sizeof(SHFILEINFO),SHGFI_DISPLAYNAME);<br />
AfxMessageBox(shFile.szDisplayName);<br />
|
|
|
|
|
Is there any Word Automation documentation available. This is something which i did not see when i searched the net. there are several examples. but proper documentation is not available. If anybody could help me it would be great.
|
|
|
|
|
Chandru080 wrote: but proper documentation is not available.
bollocks - what do you mean by 'documentation'
see this for an example - the most tricky part is learning the object model for Word ...
http://support.microsoft.com/kb/196776[^]
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
Can I run .exe file such as explorer.exe or notepad.exe as child window of my CView?
so,that .exe file is placed within my CView?
Thanks.
|
|
|
|
|
It may be helpful if you tell us what you are trying to achieve. And no, you can't (nor should you attempt to) "place" an .exe in CView.
|
|
|
|
|
You asked this question yesterday, and the answer is still 'no'. You cannot put an executing program into a CView; read the documentation on CView, and Windows in general, for more information.
|
|
|
|
|
If an exectuatble supports automation, then I think you can access features from that executable in your application. Applications like Word, Excel, Internet Explorer supports automation. Following link would be useful for you http://support.microsoft.com/kb/238611[^]
|
|
|
|
|
See here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hi everybody.
I draw on screen image BITMAP by load form file image Bitmap with size 10x10 inch. after, i want clear it to show image with size 1x1 inch, but invisible doing it. can you guide clear image on screen?. wish you help. thanks very much.
regards,
phan
nothing
|
|
|
|
|
You should load your bitmap into a compatible device context and then use the BitBlt() function to copy to the screen. Here[^] is a useful tutorial on using bitmaps, and here[^] is a link to the MSDN documentation.
|
|
|
|
|
|
hi you. thanks for your help.this is functions i used:
sOldBltMode = SetStretchBltMode( hDC, STRETCH_DELETESCANS );
// Create the palette.
hPal = CreateDibPalette();
if ( hPal )
{
hOldPal = SelectPalette( hDC, hPal, FALSE );
if ( hOldPal ) RealizePalette(hDC);
}
StretchDibBlt( hDC, r.left, r.top, r.Width(), r.Height(),
hMem,
Source.left, Source.top, Source.Width(), Source.Height(),
SRCCOPY );
if ( hPal && hOldPal ) SelectPalette( hDC, hOldPal, FALSE );
if ( hPal ) DeleteObject( hPal );
// Reset the stretch mode.
SetStretchBltMode( hDC, sOldBltMode );
===> first.I show image 10x10inch from file image bitmap. after,i double lick into it, and i will show properties. i choice size 1x1inch. size 10x10inch not yet clear. have i must clear image 10x10inch ? wish your help
nothing
|
|
|
|
|
Hi all,
I am using ListBox control to display the items.
i want to disable keybord events for this ListBox.
Using mouse click if we select items no problem is coming.
If I use arrow key then the selection of items are not coming in order.
I want to stop the keyboad events to this Listbox control
|
|
|
|
|
I do not know your requirements but disabling keyboard events to force the user to use the mouse doesn't sound too nice to me, maybe you should either rethink the way you handle the selection changes or maybe post a question about the root of the problem, someone might be able to help. Anyways, subclass the listbox and try to give handlers to WM_KEYDOWN, WM_KEYUP and WM_CHAR and don't call the super handlers for these. You might need to experiment around to find out what combination of these has to be owerwritten and what else you need to handle to get what you want. I hope this will work for you, good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi,
Thank you.
I have developed with my own CListBox class
overwritten OnKeyDown() handler. By doing this it is working.
Regards,
Sakhalean
|
|
|
|
|
I'm creating a window using the following:
WNDCLASSEX wndClass;
wndClass.cbClsExtra = NULL;
wndClass.cbSize = sizeof(WNDCLASSEX);
wndClass.cbWndExtra = NULL;
wndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
wndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndClass.hIconSm = LoadIcon(NULL, IDI_APPLICATION);
wndClass.hInstance = mHInst;
wndClass.lpfnWndProc = &Window::msgRouter;
wndClass.lpszClassName = mWindowClassName.c_str();
wndClass.lpszMenuName = NULL;
wndClass.style = CS_CLASSDC;
RegisterClassEx(&wndClass);
mHWnd = CreateWindowEx(0, mWindowClassName.c_str(), mTitle.c_str(), WS_CAPTION | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, 800, 600, NULL, NULL, mHInst, this);
Which creates the following window:
Clicky[^]
Now the problem is, at the call to CreateWindowEx() , mWindowClassName.c_str() returns "Default Window Class" , and mTitle.c_str() returns "My window" - yet the window is still created without any title. I'm guessing this is probably due to a conflicting set of window style flags, but I can't for the life of me get it to work, regardless of what combination of flags I use. What else could be causing this to happen?
|
|
|
|