Click here to Skip to main content
15,917,563 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetMessage Pin
John M. Drescher4-Jun-02 9:41
John M. Drescher4-Jun-02 9:41 
Questionsetting scroll lines under Win98 ??? Pin
Alek3-Jun-02 15:20
Alek3-Jun-02 15:20 
QuestionMEMdc not working with SetWindowOrg? Pin
aldeba3-Jun-02 14:49
aldeba3-Jun-02 14:49 
AnswerRe: MEMdc not working with SetWindowOrg? Pin
Ed Gadziemski3-Jun-02 15:14
professionalEd Gadziemski3-Jun-02 15:14 
GeneralRe: MEMdc not working with SetWindowOrg? Pin
aldeba3-Jun-02 15:48
aldeba3-Jun-02 15:48 
GeneralRe: MEMdc not working with SetWindowOrg? Pin
Ed Gadziemski4-Jun-02 3:50
professionalEd Gadziemski4-Jun-02 3:50 
QuestionHow do i make a fully-qualified PIDL out of a single-level PIDL? Pin
redeemer3-Jun-02 13:24
redeemer3-Jun-02 13:24 
QuestionSpin Control ?? Pin
BlackDogEngineering3-Jun-02 13:16
BlackDogEngineering3-Jun-02 13:16 
I have some funny behavior with a spin control on a dialog. I'm beginning to think I have a bad implementation for this type of control.

The behavior is that the values returned from GetPos() seem to lag what the user is doing. E.g., if the user presses the up arrow twice, then the down arrow twice, the user will see (maybe)3 ups followed by a down. This is what I see in the debugger also.

I am very suspicious of how I'm using the control. When I use the class wizard and select the spin control, there are only two messages I can react to: NM_OUTOFMEMORY and UDN_DELTAPOS. I chose to handle the DELTAPOS message. In that handler I have the following code:

void cTabGeneral::OnDeltaposSpinState(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
int val;
static bool FirstTime = true;

if (FirstTime)
{
FirstTime = false;
m_StateSpinner.SetRange(Initialization, TotalNumberOfStates-1);
}

val = ( 0x0000ffff & m_StateSpinner.GetPos() );
DisplaySimState(val); // display new text based on spin control
UpdateData(false); // cause refresh of display

*pResult = 0;
}

Also in the class wizard, I created a member variable (m_StateSpinner) of type CSpinButtonCtrl.


Any ideas on where I've gone astray? I don't like the DELTAPOS message, perhaps mainly because I don't understand what its doing.
AnswerRe: Spin Control ?? Pin
aldeba3-Jun-02 14:38
aldeba3-Jun-02 14:38 
GeneralChanging Treeview TVS_INFOTIP timeouts Pin
Hydra3-Jun-02 12:19
Hydra3-Jun-02 12:19 
GeneralDebugging causing exceptions Pin
moredip3-Jun-02 12:14
moredip3-Jun-02 12:14 
GeneralRe: Debugging causing exceptions Pin
Alexandru Savescu4-Jun-02 0:53
Alexandru Savescu4-Jun-02 0:53 
GeneralComboBox & autocompleting with visibled droplist & error in Win98 Pin
Wizard_013-Jun-02 11:55
Wizard_013-Jun-02 11:55 
GeneralPointer and Arrays Pin
RaphaelBr3-Jun-02 11:33
RaphaelBr3-Jun-02 11:33 
GeneralRe: Pointer and Arrays Pin
Abin3-Jun-02 14:32
Abin3-Jun-02 14:32 
GeneralRe: Pointer and Arrays Pin
Rama Krishna Vavilala3-Jun-02 15:57
Rama Krishna Vavilala3-Jun-02 15:57 
QuestionHowto change screen resolution? Pin
Joshua Nussbaum3-Jun-02 11:20
Joshua Nussbaum3-Jun-02 11:20 
AnswerRe: Howto change screen resolution? Pin
Ravi Bhavnani3-Jun-02 11:25
professionalRavi Bhavnani3-Jun-02 11:25 
AnswerRe: Howto change screen resolution? Pin
Tomasz Sowinski3-Jun-02 11:36
Tomasz Sowinski3-Jun-02 11:36 
AnswerRe: Howto change screen resolution? Pin
Ed Gadziemski3-Jun-02 11:52
professionalEd Gadziemski3-Jun-02 11:52 
GeneralFix it please Pin
Jon Sagara3-Jun-02 11:04
Jon Sagara3-Jun-02 11:04 
GeneralRe: Fix it please Pin
Steve L.3-Jun-02 11:15
Steve L.3-Jun-02 11:15 
GeneralRe: Fix it please Pin
Ed Gadziemski3-Jun-02 11:54
professionalEd Gadziemski3-Jun-02 11:54 
GeneralRe: #include questions Pin
Joaquín M López Muñoz3-Jun-02 11:00
Joaquín M López Muñoz3-Jun-02 11:00 
Generaljavascript ... Pin
craigk3-Jun-02 9:38
craigk3-Jun-02 9:38 

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.