Questions tagged [custom-draw]
67 questions
0
votes
1 answer
win32 ListView CustomDraw , why dwDrawStage value is alway equal to 1
i'm working on win32 listview controls,Want to achieve CustomDraw,
but i got something strange。
I wonder why this dwDrawStage value is always equal to 1
bool rst = CreateWinEx(WC_LISTVIEW, NULL,
WS_CHILD | WS_VISIBLE | LVS_REPORT |…

anti-gravity
- 122
- 6
0
votes
1 answer
How to draw on screen using hand gestures in iPhone SDK?
I want to draw on screen by moving my fingers across the screen.
How can we achieve this in iPhone SDK?

meetpd
- 9,150
- 21
- 71
- 119
0
votes
1 answer
NSOutlineView badges in NSSplitView
I have an NSOutlineView which I draw badge numbers to the right side of cells using drawAtPoint:, NSAttributedString, and of course NSBezierPath. My problem exists when resizing of the outline view occurs when within a subview of an NSSplitView. The…

Marc
- 1
- 1
0
votes
1 answer
How can I resize an application menu bar in a MFC application?
I am working with MFC and I have created succesfully custom-drawn menus. Each menu-item is measured and drawn correctly, except the mainlevel-items. The only thing I can't get done is redrawing the application menubar.
I attached two images:
The…

Jaap Scheper
- 67
- 11
0
votes
1 answer
Force a repaint of a custom drawn UIElement in a custom WPF control
I'm working on a custom WPF control. The main purpose of this control is to visualize thousands of graphical primitives in a scrollable area. The core part of the control's template looks like this:
…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
0 answers
CDDS_ITEMPREPAINT GetItem return false for child
I am reading tv.pszText of child items in CDDS_ITEMPREPAINT but its returning garbage value every time i ran this code. But it works fine for Parent nodes
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
…

Yousaf Nasim
- 51
- 3
0
votes
1 answer
Custom draw CTreeCtrl: how to add font strike through?
I have implemented custom draw for an CTreeCtrl in my MFC Smart Device program. I have successfully changed the color of specific nodes of the CTreeCtrl. I am now trying to understand how to get the default font used to draw text in the control so…

Trevor Balcom
- 3,766
- 2
- 32
- 51
0
votes
1 answer
MFC CtreeCtrl CustomDraw CDIS_HOT change font style failed
In customdraw the MFC CTreeCtrl ,I want to remove the font text underline when item is in hot state,so the code is like :
void CTreeCtrlCS::OnCustomDraw(NMHDR *pNMHDR, LRESULT *pResult)
{
...........................
…

true_casey
- 79
- 1
- 11
0
votes
1 answer
How to custom draw a cursor handle on MS Chart
Can anyone tell me if it is possible to custom draw a cursor handle (can't think of a better word for this) as shown in the image below? I have marked it in red circle.
The aqua coloured inverted triangle can be dragged left or right between two…

silverspoon
- 1,085
- 1
- 11
- 22
0
votes
1 answer
SetWindowLong in CustomDraw causes unhandled exception
I am making some changes to a CSliderCtrl using the Custom Draw, the control is to be used in a dialog. Here is the structure:
In my MessageMap I have : ON_NOTIFY_REFLECT_EX(NM_CUSTOMDRAW, OnNMCustomdraw)
The OnNMCustomdraw method looks like the…

Andrew
- 1,608
- 16
- 31
0
votes
1 answer
Properly determine checkbox state for custom draw
INTRODUCTION AND RELEVANT INFORMATION:
I need to have themed common controls but with different text color, and transparent background. I have ran into a problem that is well documented in this question.
I have made some progress by handling…

AlwaysLearningNewStuff
- 2,939
- 3
- 31
- 84
0
votes
1 answer
How to draw the static part of the combobox
I have a custom drawn combobox with style CBS_DROPDOWNLIST and CBS_OWNERDRAWVARIABLE I can draw the items of the dropdownlist ok but whe user select an item it is drawn in the combobox static part [the part of combo that stay visible after selecting…

ahmedsafan86
- 1,776
- 1
- 26
- 49
0
votes
1 answer
Java custom drawing with paintComponent() and paint()
I come from an Objective-C background and I have been developing on the iOS and Mac OS platform for a number of years now. I love the concept of custom drawing and therefore I would like to replicate what had been done by me on the aforementioned…

the_critic
- 12,720
- 19
- 67
- 115
0
votes
1 answer
CListCtrl: how to get column width when use different fonts on same column?
I derived a class from CListCtrl called CListCtrlCustomDraw, and use NM_CUSTOMDRAW handler to draw the list.
The problem is I have different fonts for selected item and unselected item, they are member variables of the list control, but when I use …

OnTheEasiestWay
- 429
- 2
- 7
- 14
0
votes
1 answer
Move object along path with finger
Following what is explained on Android move object along a path I drawed a circle path and could animate an object along it
Now I need to move the same object along the same path but using the finger. Basically it should be like a drag and drop but…

thomaus
- 6,170
- 8
- 45
- 63