|
Posted by Swaroop on October 6, 2006, 4:53 am
Please log in for more thread options
Hello All,
I am overriding 'Back' key of Smartphone to give custom functionality.
I am using RegisterHotKey and UnRegisterHotKey functions to
register/unregister key. Following is the functions used by me:
public static void RegisterRecordKey(IntPtr hWnd, int intKeyVal)
{
UnregisterFunc1(KeyModifiers.None, intKeyVal);
RegisterHotKey(hWnd, intKeyVal, KeyModifiers.None,
intKeyVal);
}
public static void UnregisterRecordKey(IntPtr hWnd, uint
intKeyVal)
{
UnregisterHotKey(hWnd, intKeyVal);
}
While exiting app, I m unregistering the Back key. The Back key get
unregistered, but it does not behave as per its original functionality.
When I soft reset the device, then it works with its original
functionality.
Can anybody tell me what could be the problem?
- Swaroop
|