Skip to content

Article Writing

Discuss writing articles, add your requests for articles here, or search for ideas for a new article.

This category can be followed from the open social web via the handle article-writing@forum.codeproject.com

5.4k Topics 12.4k Posts
  • how to change font in menus

    help tutorial question
    2
    0 Votes
    2 Posts
    2 Views
    J
    One word: Ownerdraw In a nutshell, you cannot set a magic "font" property (unless maybe VB supports that sort of craziyness) you will need to set the MF_OWNERDRAW flag for each menu item that you want customized & then handle the resulting WM_MEASUREITEM and WM_DRAWITEM messages to actually draw the menu item yourself. Before a menu is displayed windows sends WM_MEASUREITEM to the parent window to get the minimum dimensions for each item with the MF_OWNERDRAW flag set. After querying for the size, windows will send a WM_DRAWITEM message (again, for each ownerdraw menu item) that you can use to draw the menu item with any one of your favorite GDI calls. One little note, you may want to keep a map (or collection of some sort) to keep track of the menu item text, it tends to get forgotten when you mark a menu item as ownerdraw. There are also some samples here on code project that you should check out to help you along. Happy coding :)
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • help:The image identification of the number plate

    com help learning
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • sharing a pointer between the applications

    question c++
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • sharing a pointer between the applications

    question c++
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Web Browser control

    help docker hardware question
    2
    0 Votes
    2 Posts
    2 Views
    M
    Two things to try. (This is just speculation - I haven't tried it myself.) 1. Register your dialog as a drop target and see if this overrides the WB control's drag and drop handling. 2. If the WB control still responds to drops, call RevokeDragDrop() and pass the HWND of the WB control. --Mike-- http://home.inreach.com/mdunn/ Time is an illusion; lunchtime doubly so.
  • Blackjack source code for Palm

    help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Any RPG IV or RPG 400 Programmer HERE??

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    1 Views
    No one has replied
  • CRichEditView and WYSIWYG page effect

    graphics tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • CRichEditCtrl and rotation

    help question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Buffered out for CScrollView

    performance help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • keypad code sample for winamp plugin

    c++
    2
    0 Votes
    2 Posts
    0 Views
    M
    Have you downloaded the General Plugin SDK from Winamp? Well, it's not an SDK, just a sample plugin, but that's a good place to start. Winamp's site also has links to discussion boards for developers. --Mike-- http://home.inreach.com/mdunn/ Time is an illusion; lunchtime doubly so.
  • Accessing excel thru VBScript

    question sysadmin
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Quicktime samplecode?

    tutorial question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • CDROM Name

    question
    2
    0 Votes
    2 Posts
    1 Views
    L
    look in the registry under HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP on my box its several layers under scsi, where it is on your I don't know - yours may be EIDE? Stephen Kellett
  • Using PDF ActiveX troubles

    c++ com help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Visual C++ Telnet Client

    c++ help tutorial
    2
    0 Votes
    2 Posts
    1 Views
    S
    Hi, Did you check out Randy More's "NT Telnet server and client"? on this site? Also, doing a search at the homepage brings up another project, I believe from the same author. HTH! Scott!
  • ATL Control

    c++ visual-studio help
    3
    0 Votes
    3 Posts
    2 Views
    U
    thanx amit ur right we gotta use that. i got hold of a sample vblite in msdn n presently working on it. if ur interested please go through it. bye. uday
  • 0 Votes
    2 Posts
    1 Views
    M
    Does any one know how to change some controls (ex. How the button look, or the progress bar Yep, it's called owner-drawing. There are several examples of owner-drawn buttons here (check out the dropdown-menu buttons especially) at CP. Progress bars are pretty simple controls to draw (frame + progress meter). You can paint a custom background in a dialog in the WM_ERASEBKGND message - again I'm sure there are examples here at CP in the Dialogs section. --Mike-- http://home.inreach.com/mdunn/ Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?