|
Hello Friends
I m very close to one of my target If u help me to solve this.
I hv to get value from SendMessage.and I m using like this.
Int ID;
int view = (int) SendMessage(pshell,WM_COMMAND,ID,0);
But it is returning always same value for ID.
I also tried WPARAM wparam in place of ID too but no result.
PLZ suggest me some solution.
Actually I m getting tht value for view in dialog.
thx
|
|
|
|
|
What are you trying to do ? The 3rd parameter of SendMessage is a WPARAM which depends on the type of message you are sending, it doesn't return something to you...
yogeshs wrote: I also tried WPARAM wparam in place of ID too but no result.
What do you mean ?
|
|
|
|
|
I m getting view type from dialog
while setting I m using
0x7029 Icons
0x702B List
0x702C Details
0x702D Thumbnails
0x702E Tiles
default for each view
But how do i get tht for different view?
|
|
|
|
|
The only thing I can reply is Liquid Nitrogen[^].
Now, if you want a more serious reply it would be nice to explain what you are trying to do (at a higher level). I'm really totally confused about what you are trying to achieve
|
|
|
|
|
yogeshs wrote: Actually I m getting tht value for view in dialog.
You appear to have asked this same question previously although in different ways, and yet nowhere have you clearly explained what you are trying to do. All I can determine is
- you are using a dialog, for some unknown purpose
- you need to do something with a view somewhere
- you have some reason to use an
OPENFILENAME structure in or from the dialog - you think
lpfnHook is an answer to something - you do not understand the
SendMessage() call
Can you please try reposting the question with a clear definition of what your program is trying to do and what bits are not working. Place any code you post between <pre></pre> tags, and try spelling words in full rather than using 'txtspk', so that we can understand the problem and work to a resolution for you.
|
|
|
|
|
I want to add notification icon. and Balloon for that but ballon containing come links and how that hnadle?
|
|
|
|
|
KSagar wrote: I want to add notification icon. and Balloon for that but ballon containing come links and how that hnadle?
Are you needing something like CPPToolTip v2.1[^]?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
|
I have a CWnd Derived window. I have added several Child windows.
[main window]
[title_win]<-child window
[main_view_win]<-child window
I create the child window [main_view_win] using WS_CHILD|WS_VISIBLE|WS_HSCROLL|WS_VSCROLL the scroll bar exists and works however there are two problems.
problem one.
the scroll bar buttons initially are not drawn. ( thumb and middle part are drawn ) Once they are clicked on they are drawn properly.
when the child window [main_view_win] is covered by another window ( for example notepad ) the scrollbar's do not redraw until they are physically clicked on.
I have tried the following with no luck.
Made sure no other child window was overlapping.
Tried with clipchildren clip siblings turned on
turn off all painting functions to make sure i was not doing something stupid.
turned on and off erase background.
I did a quick test adding a scrollbar as a seperate child window and it worked just fine.
I was about to change my code ,illiminating the WS_VSCROLL and WS_HSCROLL, then I thought the smart people of codeproject might know what is happening.
|
|
|
|
|
|
I want to add 2 matrices (2 dimensional), using 2 methods.
1. Pointer To Array Method
2. Base Address of Array Using Int Pointer
Anyone please help me.
|
|
|
|
|
What is your trouble about?
It's basic pointer handling...You know, proper pointer handling is required to access the real programmer initiation.
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]
|
|
|
|
|
ratprita wrote: I want to add 2 matrices (2 dimensional), using 2 methods.
Does this get you started:
void main( void )
{
int A[2][3] =
{
{0,1,2},
{9,8,7}
};
int B[2][3] =
{
{6,5,4},
{3,4,5}
};
int C[2][3];
for (int x = 0; x < 2; x++)
{
for (int y = 0; y < 3; y++)
C[x][y] = A[x][y] + B[x][y];
}
}
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Newmat10 is a very powerful and neat library for matrix manipulation containing many useful functions. It might be helpful to you. Go to internet download it and try it!
|
|
|
|
|
I found the phrase in visual c++ 6.0 tips.But I don't know the meaning.
|
|
|
|
|
From documentation [^]:
The display area of a tab control is the area in which an application displays the current page. Typically, an application creates a child window or dialog box, setting the window size and position to fit the display area. Given the window rectangle for a tab control, you can calculate the bounding rectangle of the display area by using the TCM_ADJUSTRECT message.
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]
|
|
|
|
|
This seems quite credible.
|
|
|
|
|
jianzhuhuai wrote: I found the phrase in visual c++ 6.0 tips.
How is it used?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I want to write a contact into outlook with the hlp of MAPI can any body help me with a sample or any procedure . right now iam using Test Mapi but iam unable to understand it. thanks in advance....
|
|
|
|
|
See here[^]
The article is about Outlook 2007.
And here[^] is an article (includes adding contacts) for automating Microsoft Outlook 2000, 2002, 2003 and older versions.
I hope this helps.
Nuri Ismail
modified on Friday, October 23, 2009 4:25 AM
|
|
|
|
|
|
while rotating rectangle in c by draging mouse how can i calculate the angle ......
actually I want to rotate rectangle dynamically on mouse event like open office.
|
|
|
|
|
Your question is short, but the answer heavily depends on how much math knowledge you have.
Possibly the biggest tip I can give anyone who ever wants to deal with graphics is to go back you your end-of-school (ie A-level) math books, and learn about matrices (matrix-es) and vectors. It's fine if you don't know it now. If you are unwilling or unable to do this, quit now and start learning how to say "would you like fries with that?".
That said, the following will help, I think:
Angle between vectors[^]
For a more complex dragging about of shapes, have a look at the following, superbly written and illustrated, article:
Warping Coordinates with Matrices[^] by me!
If you don't already know about it, I'd advise you learn about SetROP2(R2_NOT) for your mouse handling code, to draw / undraw tracking lines.
I hope that helps steer you in the right direction. A more exact answer would depend on the details of your application and skill level.
Good luck,
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
to add to warrior panda's reply :p, you can try [this] to understand vectors. Once you know that, you should not have any problem calculating angles or rotating a rectangle. you just need to specify the rotate center and angle of rotation and then rotate each of the 4 vectors obtained by joining rotate center and 4 corners. easy, huh?
|
|
|
|
|
theCPkid wrote: to add to warrior panda's reply
Hey, don't insult him, he is a viking, not a panda. Carefull or you'll end up with an axe in your head...
|
|
|
|