Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Having difficulty writing text on a bitmap Pin
JJeffrey26-Nov-08 19:35
JJeffrey26-Nov-08 19:35 
GeneralRe: Having difficulty writing text on a bitmap Pin
enhzflep26-Nov-08 19:48
enhzflep26-Nov-08 19:48 
GeneralRe: Having difficulty writing text on a bitmap Pin
JJeffrey26-Nov-08 20:52
JJeffrey26-Nov-08 20:52 
GeneralRe: Having difficulty writing text on a bitmap Pin
enhzflep26-Nov-08 21:04
enhzflep26-Nov-08 21:04 
GeneralRe: Having difficulty writing text on a bitmap Pin
JJeffrey26-Nov-08 21:37
JJeffrey26-Nov-08 21:37 
GeneralRe: Having difficulty writing text on a bitmap Pin
PJ Arends27-Nov-08 7:13
professionalPJ Arends27-Nov-08 7:13 
GeneralRe: Having difficulty writing text on a bitmap [modified] Pin
JJeffrey27-Nov-08 15:49
JJeffrey27-Nov-08 15:49 
QuestionCursor not changing [modified] Pin
Leslie Sanford26-Nov-08 9:00
Leslie Sanford26-Nov-08 9:00 
I've written a custom GUI library for creating GUI's for my VST plugins. I would love to use MFC, but I've never gotten them to play together nicely (long story).

Anyway, the GUI library has come together well, but there are a few anomalies to work out. The one I'm dealing with right now is a problem with the cursor.

In VST, the host asks the plugin to create a child window representing the plugin's UI. It's the host's job to display the window. All of this works well, but what I've noticed is that if I move the cursor from outside my GUI window to inside the window, sometimes the cursor shape doesn't change. For example, it may get stuck with the resizing handle image.

I've noticed that this problem doesn't occur in a standalone app I made with my library. I've made sure when registering the GUI window class that I used the obligatory: ::LoadCursor(instance, IDC_ARROW).

There's way too much code for me to post anything here. So I'm just looking for some general clues.

EDIT: Strange. I changed the code to ::LoadCursor(NULL, IDC_ARROW), and it fixed the problem.

modified on Wednesday, November 26, 2008 3:09 PM

AnswerRe: Cursor not changing Pin
CPallini26-Nov-08 9:30
mveCPallini26-Nov-08 9:30 
GeneralRe: Cursor not changing Pin
Leslie Sanford26-Nov-08 10:06
Leslie Sanford26-Nov-08 10:06 
GeneralRe: Cursor not changing Pin
CPallini26-Nov-08 10:17
mveCPallini26-Nov-08 10:17 
Question<tag>/, source code questions</tag> Pin
ForNow26-Nov-08 6:26
ForNow26-Nov-08 6:26 
AnswerRe: /, source code questions Pin
Maximilien26-Nov-08 6:52
Maximilien26-Nov-08 6:52 
GeneralRe: /, source code questions Pin
jeron126-Nov-08 7:16
jeron126-Nov-08 7:16 
AnswerRe: /, source code questions Pin
CPallini26-Nov-08 7:13
mveCPallini26-Nov-08 7:13 
QuestionRe: /, source code questions Pin
led mike26-Nov-08 7:21
led mike26-Nov-08 7:21 
AnswerRe: /, source code questions Pin
CPallini26-Nov-08 7:46
mveCPallini26-Nov-08 7:46 
Questionhook for Outlook Express 6 Pin
Dr. Kelwin26-Nov-08 5:33
Dr. Kelwin26-Nov-08 5:33 
QuestionChild window and tab stop Pin
BadJerry26-Nov-08 5:08
BadJerry26-Nov-08 5:08 
AnswerRe: Child window and tab stop Pin
Code-o-mat26-Nov-08 8:34
Code-o-mat26-Nov-08 8:34 
QuestionIs MFC DLL reentrant? Pin
rp_suman26-Nov-08 3:56
rp_suman26-Nov-08 3:56 
AnswerRe: Is MFC DLL reentrant? Pin
Mark Salsbery26-Nov-08 5:04
Mark Salsbery26-Nov-08 5:04 
GeneralRe: Is MFC DLL reentrant? Pin
rp_suman28-Nov-08 18:36
rp_suman28-Nov-08 18:36 
GeneralRe: Is MFC DLL reentrant? Pin
Mark Salsbery28-Nov-08 19:05
Mark Salsbery28-Nov-08 19:05 
QuestionTransparent Window Pin
Aabid26-Nov-08 2:54
Aabid26-Nov-08 2:54 

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.