Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralManipulation of Bitmap Pixels using Win32 APIs Pin
essra5-Sep-04 13:49
essra5-Sep-04 13:49 
GeneralRe: Manipulation of Bitmap Pixels using Win32 APIs Pin
Christian Graus5-Sep-04 15:36
protectorChristian Graus5-Sep-04 15:36 
GeneralRe: Manipulation of Bitmap Pixels using Win32 APIs Pin
essra6-Sep-04 0:49
essra6-Sep-04 0:49 
GeneralRe: Manipulation of Bitmap Pixels using Win32 APIs Pin
Christian Graus6-Sep-04 10:39
protectorChristian Graus6-Sep-04 10:39 
Generalincoming connection with ras api Pin
mark1825-Sep-04 13:27
mark1825-Sep-04 13:27 
GeneralRe: incoming connection with ras api Pin
harish n v21-Jul-10 20:39
harish n v21-Jul-10 20:39 
GeneralWriting Plug In For MS Outlook Pin
Robert Palma Jr.5-Sep-04 10:39
Robert Palma Jr.5-Sep-04 10:39 
Generalslider bar Pin
Anonymous5-Sep-04 9:31
Anonymous5-Sep-04 9:31 
<br />
void CEffectsDlg::OnCustomdrawSlider2(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
	if(delayOn)<br />
	{<br />
		m_sl2Val.Format("Val: %d%%", (sl2Max - m_sl2Ctrl.GetPos()));<br />
<br />
		UpdateData(FALSE);<br />
	}<br />
	<br />
	*pResult = 0;<br />
}<br />


My problem is that the above code appears to be called before I get a chance to assign delayOn a value (its called immediately when the program is launched). I verified this by sticking a MessageBox in with the above.

A setup() function in OnInitDialog() should stop this from happening by declaring delayOn to be FALSE, but this is obviously being called after OnCustomdrawSlider2.

Is there any way round this?

Cheers.
GeneralRe: slider bar Pin
PJ Arends5-Sep-04 9:48
professionalPJ Arends5-Sep-04 9:48 
GeneralRe: slider bar Pin
Gary R. Wheeler5-Sep-04 9:57
Gary R. Wheeler5-Sep-04 9:57 
QuestionHow to freeze a process Pin
gamitech5-Sep-04 9:22
gamitech5-Sep-04 9:22 
AnswerRe: How to freeze a process Pin
Gary R. Wheeler5-Sep-04 10:04
Gary R. Wheeler5-Sep-04 10:04 
GeneralRe: How to freeze a process Pin
Neville Franks5-Sep-04 10:46
Neville Franks5-Sep-04 10:46 
GeneralRe: How to freeze a process Pin
Gary R. Wheeler5-Sep-04 14:42
Gary R. Wheeler5-Sep-04 14:42 
GeneralRe: How to freeze a process Pin
Anonymous6-Sep-04 9:52
Anonymous6-Sep-04 9:52 
GeneralDocument / view basic C++ question Pin
Vaclav5-Sep-04 9:22
Vaclav5-Sep-04 9:22 
GeneralRe: Document / view basic C++ question Pin
PJ Arends5-Sep-04 10:09
professionalPJ Arends5-Sep-04 10:09 
GeneralRe: Document / view basic C++ question Pin
Vaclav5-Sep-04 19:59
Vaclav5-Sep-04 19:59 
GeneralRe: Document / view basic C++ question Pin
PJ Arends6-Sep-04 9:33
professionalPJ Arends6-Sep-04 9:33 
GeneralValidating Paths Pin
Joel Holdsworth5-Sep-04 8:22
Joel Holdsworth5-Sep-04 8:22 
GeneralRe: Validating Paths Pin
PJ Arends5-Sep-04 9:06
professionalPJ Arends5-Sep-04 9:06 
GeneralRe: Validating Paths Pin
Joel Holdsworth5-Sep-04 10:23
Joel Holdsworth5-Sep-04 10:23 
GeneralRe: Validating Paths Pin
PJ Arends5-Sep-04 10:32
professionalPJ Arends5-Sep-04 10:32 
GeneralRe: Validating Paths Pin
Joel Holdsworth5-Sep-04 11:37
Joel Holdsworth5-Sep-04 11:37 
GeneralRe: Validating Paths Pin
CKLam5-Sep-04 9:08
CKLam5-Sep-04 9: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.