|
How can I have always displayed selection of an item?
When user clicks in field (inside list control), where there isn't any item, selection is disapearing - how can I prevent this?
In control properties I have "show selection always" set as TRUE.
~~~~
|
|
|
|
|
Map LVN_ITEMCHANGING Notification.
And try this
void CMyDlg::OnItemchangingList1(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
CPoint pos(GetMessagePos());
m_list.ScreenToClient( &pos );
UINT uFlags = 0;
m_list.HitTest( pos, &uFlags );
*pResult = ( uFlags & LVHT_ONITEMLABEL ) ? FALSE : TRUE;
}
- NS -
|
|
|
|
|
It gives error "access violation".
~~~~
|
|
|
|
|
I had tested the code, and then was posted.
Can you show your code, or email the .cpp and .h files?
- NS -
|
|
|
|
|
I create a topmost window using CreateWindowEx() function (use WS_EX_WINDOWLAYERED|WS_EX_TOPMOST).
It is normal, but when my window is upper an window form of an application which use DirectX (such as a game), my window disappear ??? Only the part upper window which use DirectX is disappear, other part is oke. What is this problem ???
|
|
|
|
|
I suppose that DirectX engine, for performance reasons, uses a specific mode of transferring images to video controller. I think the data are put directly to video buffer, at a point in which the Windows system does not have access. That’s why Windows cannot combine DirectX image with your frame to apply transparency effect. The DirectX frame can be only clipped, but cannot be read.
In my tests, even Print Screen button does not include the image which belongs to a DirectX frame. (I do not now about other environments; I suppose that if Print Screen works there, then the transparency will work too).
I think there is no problem in your application. It is a way in which DirectX and Windows interact.
|
|
|
|
|
Any clues to show the "Hand cursor" only in a selected list item? There are 7 list items. In that one list item would be like a hyperlink. if it is done in mouseover method, then the "Hand cursor" should be applied to only one list item in a row.
need to restrict "mouse over" and "onClick" methods.
Thanks
Raji
|
|
|
|
|
|
Read this article^
Hint:
Make use of SetCursor() appropriately a changeCursor would set the cursor back to the default cursor.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
I want to include basic transition effects to my video.
Anyone know the CLSID and headerfiles need to be included for that.
Basically i need to include left to right, right to left, top to bottom and bottom to top transition effects
CLSIDs for left to right transitions are CLSID_DxtJpeg and CLSID_Slide.
But I couldnt find the header file need to be included for CLSID_Slide.
Please anyone help me on this.
Thanks in Advance,
Poornima
|
|
|
|
|
Hi All,
I am new into COM/DLL programming so I have a problem that I am adding an ocx into a win32 DLL and the importing this DLL into another DLL.
I want to place an object of the ocx who is added into first dll should be placed into second DLL's Dialog.
I am able to add ActiveX controls into first DLL project butt compilation when I am importing this DLL into second DLL then unbale to create an object of the Activex into this DLL and the activex control should diplay here.
Please if any one have idea that how to call activex through this way please suggest me.
I would be thankfull for him.
Rakesh Yadav
|
|
|
|
|
Hi to all,
I need to create SDL(simple Directmedia layer) screen
and a drop-down box to select operation like (play,pause,stop)in the same window..
Thanking you
Manjunath S
|
|
|
|
|
|
One question(SDL)
whitesky
|
|
|
|
|
WhiteSky wrote: One question(SDL)
what about SQP (Single Question POST)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
why don't you follow the same threads. Somebody will help you on your issues.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi to all,
Any Sample code to create window of our own class in MFC dialog allication..
Thanking you ..
Manjunath S
|
|
|
|
|
Does this help?
Do you have an example of such an application (i.e., one that uses SDL)?
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
|
PLEASE STOP THIS IMMEDIATELY
you asked you question thrice already. that's enough !!! and there's no need to shout, you will only get people here feeling harrased by you, and no one would want to answer you anymore. suss:
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
|
toxcct wrote:
PLEASE STOP THIS IMMEDIATELY
Calm down TOX, i believe he/she is newsbie..let teach him/her how to post here in softer way! .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: i believe he/she is newsbie
this is not a reason. he has already been notified about his repost, so he's aware he mustn't do things like this.
if nobody respect Codeproject posting guidelines, forums are going to break down quickly.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
toxcct wrote:
if nobody respect Codeproject posting guidelines, forums are going to break down quickly.
Yeap you are right!.. any way its seems the poster have listened, what you haev said and deleted his post!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote: its seems the poster have listened, what you haev said and deleted his post!
a bit too late, but lets applause anyway
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|