Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get the total time of the wav file. Pin
Deepu Antony5-Apr-09 23:01
Deepu Antony5-Apr-09 23:01 
AnswerRe: How to get the total time of the wav file. Pin
David Crow6-Apr-09 3:25
David Crow6-Apr-09 3:25 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 3:40
Deepu Antony6-Apr-09 3:40 
GeneralRe: How to get the total time of the wav file. Pin
David Crow6-Apr-09 3:57
David Crow6-Apr-09 3:57 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 4:36
Deepu Antony6-Apr-09 4:36 
GeneralRe: How to get the total time of the wav file. Pin
Deepu Antony6-Apr-09 6:16
Deepu Antony6-Apr-09 6:16 
QuestionTabStop not working when add image over a button control. Pin
Le@rner5-Apr-09 21:11
Le@rner5-Apr-09 21:11 
AnswerRe: TabStop not working when add image over a button control. Pin
Iain Clarke, Warrior Programmer5-Apr-09 22:15
Iain Clarke, Warrior Programmer5-Apr-09 22:15 
If I can rephrase you question...

When I used a normal button, pressing TAB on my dialog selected the button.
I have changed to an ownerdraw style, and TAB no longer selects my button?

If that is a reasonable summary, then I bet you're wrong - I bet that the tab button is still fine, and if you press SPACE, the button will still work - BUT it's not drawing itself in a selected state. But that's your job now. You said "I'll draw you!".

The button will send a WM_DRAWITEM message, and that will point to a DRAWITEMSTRUCT structure.

DRAWITEMSTRUCT::itemState is a variable with bits used as flags, so you can do:

if (dis->itemState & ODS_SELECTED)
{
   // Draw something different - we're selected!
}


in your drawing routine.

Hope that helps,

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

QuestionCapturing TCP/IP packets in (DOS) Pin
rbwest865-Apr-09 21:11
rbwest865-Apr-09 21:11 
AnswerRe: Capturing TCP/IP packets in (DOS) Pin
Garth J Lancaster5-Apr-09 21:37
professionalGarth J Lancaster5-Apr-09 21:37 
AnswerRe: Capturing TCP/IP packets in (DOS) Pin
Iain Clarke, Warrior Programmer5-Apr-09 22:21
Iain Clarke, Warrior Programmer5-Apr-09 22:21 
GeneralRe: Capturing TCP/IP packets in (DOS) Pin
rbwest866-Apr-09 4:47
rbwest866-Apr-09 4:47 
GeneralRe: Capturing TCP/IP packets in (DOS) Pin
Iain Clarke, Warrior Programmer6-Apr-09 6:31
Iain Clarke, Warrior Programmer6-Apr-09 6:31 
QuestionRe: Capturing TCP/IP packets in (DOS) Pin
rbwest867-Apr-09 23:40
rbwest867-Apr-09 23:40 
QuestionX64 compilation problems Pin
Varghese Paul M5-Apr-09 20:40
Varghese Paul M5-Apr-09 20:40 
AnswerRe: X64 compilation problems Pin
Stuart Dootson5-Apr-09 22:14
professionalStuart Dootson5-Apr-09 22:14 
QuestionVideo Capture Pin
tns_ranjith5-Apr-09 20:23
tns_ranjith5-Apr-09 20:23 
QuestionHow to make MessageBox () to behave as AfxMessageBox (); Pin
kapardhi5-Apr-09 19:08
kapardhi5-Apr-09 19:08 
AnswerRe: How to make MessageBox () to behave as AfxMessageBox (); Pin
kapardhi5-Apr-09 19:15
kapardhi5-Apr-09 19:15 
GeneralRe: How to make MessageBox () to behave as AfxMessageBox (); Pin
Hamid_RT5-Apr-09 19:40
Hamid_RT5-Apr-09 19:40 
QuestionRe: How to make MessageBox () to behave as AfxMessageBox (); Pin
Iain Clarke, Warrior Programmer5-Apr-09 22:23
Iain Clarke, Warrior Programmer5-Apr-09 22:23 
AnswerRe: How to make MessageBox () to behave as AfxMessageBox (); Pin
peaqea5-Apr-09 19:21
peaqea5-Apr-09 19:21 
GeneralRe: How to make MessageBox () to behave as AfxMessageBox (); Pin
gamefreak229119-Apr-09 16:20
gamefreak229119-Apr-09 16:20 
QuestionCRichEditCtrl on CMDIChildWnd not working Pin
prithaa5-Apr-09 18:11
prithaa5-Apr-09 18:11 
AnswerRe: CRichEditCtrl on CMDIChildWnd not working Pin
prithaa5-Apr-09 20:20
prithaa5-Apr-09 20:20 

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.