|
How about ExtractIcon() ?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I've tried with extract icon, it doesen't work for all the apps.
|
|
|
|
|
or SHGetFileInfo(...)
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
This should be the answer!!! Thank you all!
|
|
|
|
|
Try it before you conclude, and let me know wheather it worked ?
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
I'm working on windowless control and came up to a problem of geting the parent form on which I planted my control. Is this posible to obtain and if it is how?
Fear not the dark within this night
Beneath the sky of deadly light
Of raging fire seen from afar
The fear inside of who you are
|
|
|
|
|
There is no such thing as parent form, perent window yes...
you can get it if you use
GetParent(...);
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hi,
How can I get the Open File Dialog Box .I use MFC and MVC++ 6.0.
Thanks.
Deepak Samuel.
|
|
|
|
|
Construct a CFileDialog object.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
How can we add the file names in a directory to a combobox ?
Thanks,
Deepak Samuel
|
|
|
|
|
Use the AddString() method. If you are not using MFC, then send the control a CB_ADDSTRING message.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
If you want to get the files also you need to use FindFirstFile() and FindNextFile() .
A quick example of FindFirstFile straight from MSDN
#define _WIN32_WINNT 0x0400<br />
<br />
#include <windows.h><br />
#include <stdio.h><br />
<br />
int main(int argc, char *argv[])<br />
{<br />
WIN32_FIND_DATA FindFileData;<br />
HANDLE hFind;<br />
<br />
printf ("Target file is %s.\n", argv[1]);<br />
hFind = FindFirstFile(argv[1], &FindFileData);<br />
if (hFind == INVALID_HANDLE_VALUE) <br />
{<br />
printf ("Invalid File Handle. GetLastError reports %d\n", GetLastError ());<br />
return (0);<br />
} <br />
else <br />
{<br />
printf ("The first file found is %s\n", FindFileData.cFileName);<br />
FindClose(hFind);<br />
return (1);<br />
}<br />
}
Ant.
|
|
|
|
|
Of course, but since the verb in the original post was "add", it only made sense that the combobox was the subject.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Sorry David my post was not meant as a critisism of yours.
Since English is quite ambiguous I thought I would fill the possible missing part
Ant.
|
|
|
|
|
is there any library which i can use to make a flow chart in VC++
|
|
|
|
|
I'm trying to put together a program to simulate the weakest link scorinbg system. The player is shown a random number and has to guess whether the next random number will be higher or lower than the current one.
For the random number I think I use rand() and then if statments to check the answer.
if edit1 < than edit2 ->then counter move up
could anybody bring this more into focus for me. I design my uml but having trouble with the coding.
nicolas
|
|
|
|
|
set r = pseudo-random number
while not done
prompt user for guess
if guess < r
tell user their guess is too low
else if guess > r
tell user their guess is too high
else
tell user they are right
wend Not much to it.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I've created a control variable to the activex control flexgrid, when I attempt to set the a cell value from another class the program terminates. I've no problem accessing CString variables of the other class its just the control variable (m_ctlFGrid) thats causing the problem.
Any ideas!!!
Kind Regards
Caoimh
|
|
|
|
|
I would really be happy, if someone could sort this problem.
|
|
|
|
|
Windows are represented by handles and they are global to windows rite ?
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hello
Using MFc i am drawing some figures on the View. Now what i want is to save the content in the device context (Memory device context or client device context) to a Jpeg file.
I had found and searched the codeguru and codeproject projects. But there are code available for conversion of file from BMP to Jpeg and not directly CDC --> Jpeg.
I have gone thru CXImage slighly but there also i found above step only. Can any body help me in saving the CDC to JPEG.
Thanks in advance
Leave your mark wherever you go
|
|
|
|
|
(Didn't I just post this last week?)
Create a Device-Independent Bitmap with CreateDIBSection , select it into a device context compatible with the DC which holds the image you want to save, use BitBlt to copy the saved image to the compatible DC. You can then access the DIB pixel values directly in the array you passed to CreateDIBSection .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Thanks for you kind suggestions.
I want to save my Device Context contents to Jpeg file.
I am newbie and it seems to me that your suggestion will help me to save the dc content to the BMP file.
Can you give me idea how to save this to Jpeg file.
Mike Dimmick wrote:
(Didn't I just post this last week?)
Can you provide me link to that thread. Thanks for your responce
Leave your mark wherever you go
|
|
|
|
|
Hi,
I m a student of MCA final year and I m working in VC. I used a dialog base application. I used BMP's for the background and for every button in the application.
The problem is that whenever I use the DoModal(), to show the next dialog, I get the flickering problem. Anyone know about this problem ??
Thanks in advance.
Please reply soon..
Mayank Kumar
|
|
|
|
|
Handle OnEraseBackground and do nothing just return 0
MSN Messenger.
prakashnadar@msn.com
|
|
|
|