Click here to Skip to main content
15,895,958 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnCtrlColor - how do I set a button fore color? Pin
michael thomas12-Aug-03 3:12
michael thomas12-Aug-03 3:12 
QuestionError "Recordset is read-only" ??? Pin
_skidrow_vn_11-Aug-03 15:56
_skidrow_vn_11-Aug-03 15:56 
GeneralHandling message in parent window Pin
bitpusher11-Aug-03 15:26
bitpusher11-Aug-03 15:26 
GeneralRe: Handling message in parent window Pin
HPSI11-Aug-03 20:38
HPSI11-Aug-03 20:38 
GeneralI get an error with writing a string Pin
Snyp11-Aug-03 15:14
Snyp11-Aug-03 15:14 
GeneralRe: I get an error with writing a string Pin
bitpusher11-Aug-03 15:30
bitpusher11-Aug-03 15:30 
GeneralRe: I get an error with writing a string Pin
David Crow12-Aug-03 2:39
David Crow12-Aug-03 2:39 
QuestionNM_RELEASEDCAPTURE/Spin Control? Pin
Kayembi11-Aug-03 14:44
Kayembi11-Aug-03 14:44 
Hi,

I'm trying to use a spin control so that when it changes a number in its buddy window, other items in the dialog box are changed (ie. some options are greyed out depending on the value). I am *not* using MFC, just the straight Window API.

Unfortunately, I can't get it to work properly. I read on MSDN that you should use NM_RELEASEDCAPTURE with WM_NOTIFY, and that NM_RELEASEDCAPTURE uses a NMHDR structure - unfortunately, I'm a novice, and this means nothing to me - and all searches for information on NM_RELEASEDCAPTURE elsewhere have turned up blank.

Could somebody please show me a small piece of sample code, showing how to use NM_RElEASEDCAPTURE with WM_NOTIFY?

I tried doing it without NM_RELEASEDCAPTURE like this:

case WM_NOTIFY:
switch(wParam)
{
case IDC_SPIN1:
EnableWindow(ADlgItem,o);
break;
}
break;

This just about worked, but only very, very strangely... If someone could show me the right way to do this I would be really grateful.

Many thanks,
KB
AnswerRe: NM_RELEASEDCAPTURE/Spin Control? Pin
Iain Clarke, Warrior Programmer11-Aug-03 23:19
Iain Clarke, Warrior Programmer11-Aug-03 23:19 
GeneralRe: NM_RELEASEDCAPTURE/Spin Control? Pin
Kayembi12-Aug-03 3:23
Kayembi12-Aug-03 3:23 
GeneralRe: NM_RELEASEDCAPTURE/Spin Control? Pin
Iain Clarke, Warrior Programmer12-Aug-03 5:02
Iain Clarke, Warrior Programmer12-Aug-03 5:02 
GeneralRe: NM_RELEASEDCAPTURE/Spin Control? Pin
Kayembi16-Aug-03 8:35
Kayembi16-Aug-03 8:35 
GeneralRe: NM_RELEASEDCAPTURE/Spin Control? Pin
Iain Clarke, Warrior Programmer16-Aug-03 13:19
Iain Clarke, Warrior Programmer16-Aug-03 13:19 
QuestionHow can I set a toolbar button to display an icon? Pin
ElizabethC11-Aug-03 12:24
ElizabethC11-Aug-03 12:24 
AnswerRe: How can I set a toolbar button to display an icon? Pin
Adi Narayana11-Aug-03 20:35
Adi Narayana11-Aug-03 20:35 
GeneralRe: How can I set a toolbar button to display an icon? Pin
ElizabethC12-Aug-03 6:48
ElizabethC12-Aug-03 6:48 
GeneralJob Object API Pin
bigeyedfish8111-Aug-03 11:38
bigeyedfish8111-Aug-03 11:38 
Generalva_arg and VS.NET 2003 Pin
leppie11-Aug-03 10:59
leppie11-Aug-03 10:59 
GeneralRe: va_arg and VS.NET 2003 Pin
Mike Dimmick11-Aug-03 11:13
Mike Dimmick11-Aug-03 11:13 
GeneralRe: va_arg and VS.NET 2003 Pin
leppie11-Aug-03 11:23
leppie11-Aug-03 11:23 
GeneralRe: va_arg and VS.NET 2003 Pin
geo_m12-Aug-03 1:06
geo_m12-Aug-03 1:06 
GeneralRe: va_arg and VS.NET 2003 Pin
leppie12-Aug-03 7:13
leppie12-Aug-03 7:13 
GeneralRe: va_arg and VS.NET 2003 Pin
geo_m12-Aug-03 7:34
geo_m12-Aug-03 7:34 
Generallossing focus on a dialog box Pin
(Steven Hicks)n+111-Aug-03 10:34
(Steven Hicks)n+111-Aug-03 10:34 
GeneralRe: lossing focus on a dialog box Pin
valikac11-Aug-03 12:08
valikac11-Aug-03 12:08 

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.