Changing channel
Posted: Wed Jun 04, 2014 1:39 am
I was trying (and failing) to change the channel by using the following command:
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_SET_CHANNEL_BY_CHID, chid);
So I was going to ask if this was the correct command although I just looked through the DDDisecq sample and saw this:
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_GET_CHANNEL_ID, (LPARAM)&chid);
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_SET_CHANNEL_BY_CHNO, chid);
What is the difference between DDMODAPI_SET_CHANNEL_BY_CHNO and DDMODAPI_SET_CHANNEL_BY_CHID?
I don't have time to test this until I get home but hopefully DDMODAPI_SET_CHANNEL_BY_CHNO works.
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_SET_CHANNEL_BY_CHID, chid);
So I was going to ask if this was the correct command although I just looked through the DDDisecq sample and saw this:
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_GET_CHANNEL_ID, (LPARAM)&chid);
SendMessage(hwndDD, WM_MODULE_MSG, DDMODAPI_SET_CHANNEL_BY_CHNO, chid);
What is the difference between DDMODAPI_SET_CHANNEL_BY_CHNO and DDMODAPI_SET_CHANNEL_BY_CHID?
I don't have time to test this until I get home but hopefully DDMODAPI_SET_CHANNEL_BY_CHNO works.