Is there an easy way to do this and if so, how?
Thanks.
Is there an easy way to do this and if so, how?
Thanks.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
LBN_DBLCLK notification is sent to parent in WM_COMMAND:
where LOWORD(wParam)=id of listbox
HIWORD(wParam)=LB_DBLCLK msg id
and lParam=listbox handle
Hope that helps some.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Works a charm
Thank you Ken.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
Some other mouse msg's from child windows or controls can be 'caught' within the WM_PARENTNOTIFY msg
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Hmm, thanks.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }