Click here to Skip to main content
15,886,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ Excel Automation -- assign array to range Pin
MattPugsley30-Jul-09 5:45
MattPugsley30-Jul-09 5:45 
GeneralRe: C++ Excel Automation -- assign array to range -- mostly working now Pin
MattPugsley30-Jul-09 10:12
MattPugsley30-Jul-09 10:12 
GeneralRe: C++ Excel Automation -- assign array to range -- mostly working now Pin
Le@rner31-Aug-10 23:32
Le@rner31-Aug-10 23:32 
QuestionCan we change pointer type in the run time? Pin
THAQCD30-Jul-09 3:45
THAQCD30-Jul-09 3:45 
AnswerRe: Can we change pointer type in the run time? Pin
Code-o-mat30-Jul-09 4:04
Code-o-mat30-Jul-09 4:04 
GeneralRe: Can we change pointer type in the run time? Pin
THAQCD30-Jul-09 8:21
THAQCD30-Jul-09 8:21 
GeneralRe: Can we change pointer type in the run time? Pin
Code-o-mat30-Jul-09 8:28
Code-o-mat30-Jul-09 8:28 
AnswerRe: Can we change pointer type in the run time? Pin
MattPugsley30-Jul-09 7:51
MattPugsley30-Jul-09 7:51 
You may want to consider the following from
http://winapi.freetechsecrets.com/win32/WIN32SetCursor.htm[^]

"If your application must set the cursor while it is in a window, make sure the class cursor for the specified window's class is set to NULL. If the class cursor is not NULL, the system restores the class cursor each time the mouse is moved."

I've had this problem in the past. I was changing the cursor when I pressed the left mouse button. When processing the WM_LBUTTONDOWN message, I would use the SetCursor() function. But as soon as I released the mouse button, the cursor would be restored. The problem was that I had a default cursor assigned, and my cursor was reverting to this default as soon as processing for that message was completed. I could 'keep' the new cursor only by continually sending WM_LBUTTONDOWN messages.

You might check your class definition to see if you have a default cursor set.
GeneralRe: Can we change pointer type in the run time? Pin
THAQCD30-Jul-09 8:32
THAQCD30-Jul-09 8:32 
QuestionHow to avoid a Global Variable Pin
Madhu_Rani30-Jul-09 3:36
Madhu_Rani30-Jul-09 3:36 
AnswerRe: How to avoid a Global Variable Pin
Chris Losinger30-Jul-09 5:12
professionalChris Losinger30-Jul-09 5:12 
AnswerRe: How to avoid a Global Variable Pin
Rick York30-Jul-09 6:07
mveRick York30-Jul-09 6:07 
GeneralRe: How to avoid a Global Variable Pin
Madhu_Rani30-Jul-09 20:04
Madhu_Rani30-Jul-09 20:04 
GeneralRe: How to avoid a Global Variable Pin
Madhu_Rani30-Jul-09 20:36
Madhu_Rani30-Jul-09 20:36 
Questionfwrite for unicode characters... Pin
Rakesh530-Jul-09 1:57
Rakesh530-Jul-09 1:57 
QuestionRe: fwrite for unicode characters... Pin
Rajesh R Subramanian30-Jul-09 2:35
professionalRajesh R Subramanian30-Jul-09 2:35 
QuestionCMFCPropertyGridCtrl column width PinPopular
eight30-Jul-09 1:32
eight30-Jul-09 1:32 
QuestionRead and Write to Microsoft Excel which support .xlsx format. Pin
Le@rner29-Jul-09 21:41
Le@rner29-Jul-09 21:41 
AnswerRe: Read and Write to Microsoft Excel which support .xlsx format. Pin
Adam Roderick J29-Jul-09 22:53
Adam Roderick J29-Jul-09 22:53 
GeneralRe: Read and Write to Microsoft Excel which support .xlsx format. Pin
Le@rner30-Jul-09 0:16
Le@rner30-Jul-09 0:16 
GeneralRe: Read and Write to Microsoft Excel which support .xlsx format. Pin
Adam Roderick J30-Jul-09 0:28
Adam Roderick J30-Jul-09 0:28 
AnswerRe: Read and Write to Microsoft Excel which support .xlsx format. Pin
Rajesh R Subramanian30-Jul-09 0:50
professionalRajesh R Subramanian30-Jul-09 0:50 
AnswerRe: Read and Write to Microsoft Excel which support .xlsx format. Pin
Dmytro Skrypnyk25-Aug-10 23:14
Dmytro Skrypnyk25-Aug-10 23:14 
QuestionUsing Opengl in Visual C++ Windows Form Application. Pin
emira6729-Jul-09 21:21
emira6729-Jul-09 21:21 
Questionreading & displaying bitmap image Pin
adichavan29-Jul-09 21:03
adichavan29-Jul-09 21:03 

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.