|
void CTrussListEditorView::OnCustomdrawList1 ( NMHDR* pNMHDR, LRESULT* pResult )
{
NMLVCUSTOMDRAW* pLVCD = reinterpret_cast<nmlvcustomdraw*>( pNMHDR );
// Take the default processing unless we set this to something else below.
*pResult = 0;
if ( CDDS_PREPAINT == pLVCD->nmcd.dwDrawStage )
{
*pResult = CDRF_NOTIFYITEMDRAW;
}
else if ( CDDS_ITEMPREPAINT == pLVCD->nmcd.dwDrawStage )
{
COLORREF crText,crBack;
if ( (pLVCD->nmcd.dwItemSpec ) ==iListPos-1 )
{
crText = RGB(255,255,255);// for same color use 0 instead of 255
crBack= RGB(0,0,127);
}
else
{
crText = RGB(0,0,0);
crBack= RGB(255,255,255);
}
pLVCD->clrText = crText;
pLVCD->clrTextBk = crBack;
SetBkMode(pLVCD->nmcd.hdc,TRANSPARENT);
// Tell Windows to paint the control itself.
*pResult = CDRF_DODEFAULT;
}
m_Cancel.SetFocus();
}
This is the actual function
or I just need is a transparent bold rectangle of blue color around the row to highlight the selection
Thanking you
Sandeep
Sanc
|
|
|
|
|
Its not possible to do that in this way...here u r only trying to change the background color..
I think u have to draw the item by user self if u want to achive that. CImageList have function to draw the image with blending..
nave
|
|
|
|
|
I have developed a windows shell extention to send disc files as attachments using default mail client.I have used MAPI dll's SendMail function.
It works fine for single attachment but am not able to send for multiple attachments(this problem happens only with *****LOTUS NOTES*****).Can we send multiple attachments using SendMail function?If so how(any sample code)??
I used SendDocuments to do the same with Outlook and i was able to send multiple attachments.
How do we send Multiple files as attachments in Lotus Notes using any MAPI Dll funtion?
|
|
|
|
|
What is the difference between SendMail() and SendDocuments() ? What happens if you use the former on a machine that uses Outlook instead of Notes?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
if u have got anycode that can send multiple attachments using mapi,plz send it across or post it here..
Thanks
|
|
|
|
|
See here and here.
"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
|
|
|
|
|
The subject of this thread does not quite match the body of your post so I'm not real clear on what it is that you are after.
Is WM_QUERYENDSESSION or WM_ENDSESSION perhaps what you are after?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Do you want to monitor computer?
|
|
|
|
|
yes sir,
How to do when lock the computer by time of we are leaving out.but in cpu it will shows that All running process still running in process. But user cananot doing any thing on system.
my project is it will store all information regarding user used on day and time. And it will record all application and how much time he spend on application.
suppose he spend time on browse and he view all site like yahoo, rediffmail,googl site.my application will recored time and day he open browse and view all site and closeing time.
pl if u know help me
Thanks,
Anji.Manchikanti
|
|
|
|
|
I see applications that like your question that monitor computer
but how to hide your program from TaskManager it's show in this program
(I think you can write this program but it's difficult.)
|
|
|
|
|
|
|
MSDN says:
_beginthreadex resembles the Win32CreateThread API more closely than does _beginthread. _beginthreadex differs from _beginthread in the following ways:
_beginthreadex has three additional parameters: initflag, security, threadaddr. The new thread can be created in a suspended state, with a specified security (Windows NT only), and can be accessed using thrdaddr, which is the thread identifier.
The routine at start_address passed to _beginthreadex must use the __stdcall calling convention and must return a thread exit code.
_beginthreadex returns 0 on failure, rather than –1.
A thread created with _beginthreadex is terminated by a call to _endthreadex
|
|
|
|
|
Prefer _beginthread or _beginthreadex over CreateThread . The former perform some thread specific C-Runtime-Library initialization. Calling CreateThread can cause problems if you use a C-Runtime-Library function which requires this initialization.
Steve
|
|
|
|
|
Do any one know about Virtual Constructors ?
I heared about it some where but am not at all clear about the fact. If any one knows it please say abt the same ..
Rinu Raj
|
|
|
|
|
http://public.research.att.com/~bs/bs_faq2.html
Search for
Why don't we have virtual constructors?
|
|
|
|
|
C++ does not allow constructors to be virtual. The term "Virtual Constructors" refers to virtual methods of a factory classes that creates other classes. An example:
class CFactoryBase
{
public:
virtual CWorkerBase* Create() = 0;
};
class CFactory_Microsoft : public CFactoryBase
{
public:
virtual CWorkerBase* Create()
{
return new CWorkerBase_Mircrosoft();
}
};
class CFactory_Borland : public CFactoryBase
{
public:
virtual CWorkerBase* Create()
{
return new CWorkerBase_Borland();
}
};
In this context the Create methods are sometimes called virtual constructors.
Steve
|
|
|
|
|
Ironic - The one correct answer gets a 1 vote. Well don't take my word for it: see "The C++ Programming Language", Special Edition by Bjarne Stroustrup, Section 12.4.4 on page 323.
Steve
|
|
|
|
|
Perhaps fishing for an answer which pleases?
Steve
|
|
|
|
|
dunno
|
|
|
|
|
You are SO right Stephen, in both of your posts.
Virtual Constructors is a design pattern AKA "Factory Method" that also can be read about in the famous book "Design Patterns" written by GoF (Gamma, Helm, Johnson and Vlissides), which has been the "design pattern bible" for more than 10 years.
As an example: every time you create a COM object you use a factory AKA Virtual Constructor.
Common knowledge?
Strange votings again, reminds me of my post two weeks ago in The Lounge[^]
I'll put it up as much as I can...
--
Rog
It's suppose to be hard, otherwise anybody could do it!
|
|
|
|
|
|
Thank u
this is the answer i was looking for
|
|
|
|
|
I think the voter'd have wanted to give a top '1' vote. just like Rank 1.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
Did you hear it as one of the question when being interviewed?
S o h a i l K a d i w a l a
modified 21-Apr-21 21:01pm.
|
|
|
|