Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
QuestionHow to Excelsheet data from c# Pin
srinivasr_sankasani26-May-05 13:53
srinivasr_sankasani26-May-05 13:53 
AnswerRe: How to Excelsheet data from c# Pin
pubududilena26-May-05 20:02
pubududilena26-May-05 20:02 
GeneralPassing parameters from aspx to code behind file. Pin
Phillip H. Blanton26-May-05 13:02
Phillip H. Blanton26-May-05 13:02 
GeneralRe: Passing parameters from aspx to code behind file. Pin
Christian Graus26-May-05 14:23
protectorChristian Graus26-May-05 14:23 
GeneralRe: Passing parameters from aspx to code behind file. Pin
Phillip H. Blanton26-May-05 17:48
Phillip H. Blanton26-May-05 17:48 
GeneralRe: Passing parameters from aspx to code behind file. Pin
Christian Graus27-May-05 2:45
protectorChristian Graus27-May-05 2:45 
GeneralRe: Passing parameters from aspx to code behind file. Pin
Phillip H. Blanton27-May-05 3:23
Phillip H. Blanton27-May-05 3:23 
QuestionHow does one know the Screen Point of a MenuItem when it is drawn using OwnerDrawn true? Pin
Don Ashworth26-May-05 11:35
Don Ashworth26-May-05 11:35 
I would like to enhance a standrd ToolBar by providing an ownerdrawn Panel for the n-most sub-menu item of which will contain icon images that represent various tools (like the MS Word "AutoShapes" dropdown tool selection Panel). This is easy enough to do.

The problem is on MeasureItem and DrawItem, I only have the object coordinates of the item being drawn relative to "itself" not to the screen or client region (From 0,0 to however big the ownerdrawn button will be). I do not have the "actual" screen coordinates in which the rectangular region is being drawn. If I had the screen coordinates, when the end-user performs a mouse click on the ownerdrawn panel (populated with icon images)...I will be able to determine exactly where inside the ownerdrawn region the user click.

Where on the screen or client area is the menuitem being drawn?

Any help would be greatly appreciated.

-------------------------------------------------------
|0,0 (screen) |
| I need -> ?,? |
| this at ---------------- |
| DrawItem. |0,0 (menuitem)| |
| | | |
| | | |
| | 500,500| |
| ---------------- |
| |
| |
| |
| 1000,1000 |
-------------------------------------------------------

Don
AnswerRe: How does one know the Screen Point of a MenuItem when it is drawn using OwnerDrawn true? Pin
Marc Clifton26-May-05 15:52
mvaMarc Clifton26-May-05 15:52 
GeneralRe: How does one know the Screen Point of a MenuItem when it is drawn using OwnerDrawn true? Pin
Don Ashworth27-May-05 4:09
Don Ashworth27-May-05 4:09 
GeneralRe: How does one know the Screen Point of a MenuItem when it is drawn using OwnerDrawn true? Pin
Marc Clifton27-May-05 6:20
mvaMarc Clifton27-May-05 6:20 
GeneralRe: How does one know the Screen Point of a MenuItem when it is drawn using OwnerDrawn true? Pin
Don Ashworth27-May-05 7:13
Don Ashworth27-May-05 7:13 
GeneralHandling Bad HTTP server responses Pin
crc102426-May-05 11:26
crc102426-May-05 11:26 
GeneralDataTable's ever changing row index Pin
fuzzlog26-May-05 8:15
fuzzlog26-May-05 8:15 
GeneralRe: DataTable's ever changing row index Pin
pubududilena26-May-05 19:55
pubududilena26-May-05 19:55 
GeneralRe: DataTable's ever changing row index Pin
Anonymous26-May-05 20:05
Anonymous26-May-05 20:05 
GeneralRe: DataTable's ever changing row index Pin
pubududilena26-May-05 20:40
pubududilena26-May-05 20:40 
GeneralUsing custom controls. Pin
Nick Z.26-May-05 7:29
Nick Z.26-May-05 7:29 
GeneralRe: Using custom controls. Pin
Christian Graus26-May-05 14:25
protectorChristian Graus26-May-05 14:25 
GeneralRe: Using custom controls. Pin
Nick Z.26-May-05 14:40
Nick Z.26-May-05 14:40 
Questionhow to send a packet to device , the simplest way? Pin
jinzhecheng26-May-05 7:12
jinzhecheng26-May-05 7:12 
AnswerRe: how to send a packet to device , the simplest way? Pin
Phillip H. Blanton26-May-05 13:04
Phillip H. Blanton26-May-05 13:04 
QuestionCareer in 2005 + n? Pin
WDI26-May-05 6:30
WDI26-May-05 6:30 
AnswerRe: Career in 2005 + n? Pin
Judah Gabriel Himango26-May-05 7:13
sponsorJudah Gabriel Himango26-May-05 7:13 
AnswerRe: Career in 2005 + n? Pin
Anonymous27-May-05 16:31
Anonymous27-May-05 16:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.