Could someone try this and let me know if it works. It's not working for me for some reason. When you resize (by dragging) the window it should give a message and beep. Thanks
Code:
#include <acknex.h>
#include <windows.h>
LRESULT CALLBACK ScanMessage(UINT message, WPARAM wParam, LPARAM lParam);
function main() {
level_load("box.wmb"); wait(-.5);
while(1){
wait(1);
}
}
LRESULT CALLBACK ScanMessage(UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_SIZE:
error("window resized");
beep(); break;
default:
return DefWindowProc(hWnd, message, wParam, lParam);
}
return(0);
}