Trouble with a trackbar control in a win32 gui app
I have a struct called Slider that creates a win32 trackbar control, the creation goes well, it creates without any problem, the problem that i have is when i tried to get the position of the thumb of the trackbar, when i handle the messagge WM_HSCROLL the value updates without any problem and stores in a variable that i have inside the struct called thumbValue, but the problem comes when te function that updates the value goes out of scope, because when this happens the value resets and becomes 0 again. I’m would like to gave you some code snippets but the code is to big, so i would put the link of the github repository so you can check all the code and help me. https://github.com/dabo96/WinUi_v3.0.git