|
Hello
I want more than one image in a single cell of a list control (Report view ). is there any direct method.
I tried with a custom class derived from CListCtrl but sizing the pictures to fit into the cell is the problem .
I am selecting a row by changing the bhcolor of that particular row. If i place an image on a cell in that row the picture is not appearing transparant. ie, the selection background is not displaying for that image. How can I over come this ?
Thanks in advance
Sandeep A.C
Sanc
|
|
|
|
|
|
Sandeep A.C wrote: I want more than one image in a single cell of a list control (Report view ).
There is a way...
1. First create a memory dc and draw the three bitmaps to the dc...
2. Thake the current bitmap from the memory dc..
3. Add that bitmap to the Image list...( I think u have to create the image list with a width equal to the combined with of the three images)
4. Set the image to the column as usuall
Sandeep A.C wrote: the selection background is not displaying for that image. How can I over come this ?
for this u have to draw the image by userself.. u can use CImageList::DrawIndirect
nave
|
|
|
|
|
can u plz send a mail to
sancres_memail@myway.com
I will explain my problem in detail
Sandeep A.C
Sanc
|
|
|
|
|
Plz see ur inbox
Sandeep A.C
Sanc
|
|
|
|
|
ok i will try to make a sample application and send it to u..
but not soon..May be tommorow..
nave
|
|
|
|
|
Thank You
Thank you very much
SAndeep A.C
Sanc
|
|
|
|
|
The following code is written in OncLose Function.
void CMainFrame::OnClose()
{
m_pFMApplicationv7->Release();
m_pFMApplicationv7 = NULL;
CoUninitialize();
CFrameWnd::OnClose();
}
m_pFMApplicationv7 is a Interface Pointer of COM Object which is created using CoCreateInstance.The COM server is written in .NET-C#.Client is MFC.
When I close the application I got the following excepton.
Unhandled Exception in CFDlink.exe (KERNEL32.DLL):0XE0434F4D) : (NO NAME)
Kindly help me to resolve this issue.
Regards
Lavate Mallikarjun Avanna
Flowmaster India Pvt. Ltd.
-- modified at 0:41 Wednesday 26th April, 2006
|
|
|
|
|
Click on retry and debug. Take a look at the Call stack to find out what's causing this exception.
Nibu thomas
Software Developer
|
|
|
|
|
Hi Nibu,
I had done the debug I found at following location in Disassembly it throws the exception.
77D4B517 CALL 77D494A4.
In the call stack at the following location it throws the exception.
USER32!77d4b517().
Let me know what is the actual problem after viewing the above lines.
Regards
Mallikarjun
-- modified at 1:02 Wednesday 26th April, 2006
|
|
|
|
|
Take a close look at the call stack to see if it lists any of your functions or any of the functions that you have called.
Nibu thomas
Software Developer
|
|
|
|
|
Hi
For your information. I found this bug when it comes out of the scope & from there it enters into the MFC framework & there it fails.
I not found any of the functions in call stack which I had called it.
Waiting for your reply.
Regards
Mallikarjun
-- modified at 1:33 Wednesday 26th April, 2006
|
|
|
|
|
lavate malllik wrote: m_pFMApplicationv7->Release();
m_pFMApplicationv7 = NULL;
Release() returns a integer value. check it. It indicates reference count.
It must be 0 in your case.
If it is not , then it must be used some where after making it NULL
|
|
|
|
|
Hi
Thanks for your reply.
I had done debug & found the return value of release is "0".
Waiting for your reply.
Regards
Lavate Mallikarjun Avanna
|
|
|
|
|
Hi,
I'm using vc++ calling ras api RasGetEntryProperties(). I able to get the rasentry structure object and I'm facing problem in getting the alternate phone number.the documentation said the alternate numbers is a string append right after the rasentry structure.From the rasentry structure, i can get dwSize and dwAlternateOffset which will store the size(bytes) of the structure and offset point to the alternate number string respectively. but my problem is how to get the string using the rasentry or dwAlternateOffset?
|
|
|
|
|
why can't u try to get like
char szAlternatePhone[128];
strcpy(szAlternatePhone, *(rasStruct+offset));
hope it will work !
Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
|
|
|
|
|
thanks for your reply. i still can't get it done.
i already email to your hotmail account. can help me to take a look on it?
thanks a lot.
|
|
|
|
|
Have you looked at the memory immediately following the RASENTRY structure to ensure that there are phone numbers there?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
hi all,
i am using a dialog based program.i have used an API ShellExecute() to extract a zip file and it is working properly.but i just want to put a condition that if that ShellExecute returns a success,then....
but return code of the ShellExecute is an HINSTANCE varaiable.and in MSDN they have written as return code as long variable.how can i know that function is a success or that .can anyone please give me some example how to use the return code of Shellexecute().
thaks in advance
lekshmi
|
|
|
|
|
From the docs:Return Values
Returns a value greater than 32 if successful, or an error value that is less than or equal to 32 otherwise. So just test the value to be > 32 to tell if it succeeded.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
The ShellExecute returns a value greater than 32 if successful, or an error value that is less than or equal to 32 .
HINSTANCE hInst = ShellExecute(...);<br />
if( 32 < hInst )<br />
{<br />
}<br />
else<br />
{<br />
}
|
|
|
|
|
hi
thank you for the reply.but it didnt works i got the folowing errors
error C2446: '<' : no conversion from 'struct HINSTANCE__ *' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
: error C2040: '<' : 'const int' differs in levels of indirection from 'struct HINSTANCE__ *'
Error executing cl.exe.
lekshmi
|
|
|
|
|
just type cast..
if( 32 < (int)hInst )
{
}
else
{
}
nave
|
|
|
|
|
Do like that
if (ShellExecute(...) > 32)<br />
{do somthing...}
I don't know if it works or not. But i hope it will.
If problem remains, let us know.
Good luck.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Use:
HINSTANCE hInst = ShellExecute(...);
if (hInst > (HINSTANCE) HINSTANCE_ERROR)
{
...
} or
if ((int) hInst > HINSTANCE_ERROR)
{
...
}
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|