Escolar Documentos
Profissional Documentos
Cultura Documentos
h>
#include <commctrl.h>
#include <stdio.h>
#include "resource.h"
HINSTANCE hInst;
HWND h_texto, h_sim, h_nao; /// CONTROLE PARA OS BOTÕES E PARA O TEXTO
BOOL CALLBACK DlgMain(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
{
h_texto = GetDlgItem(hwndDlg, TEXTO);
h_sim = GetDlgItem(hwndDlg, BOTAO_SIM);
h_nao = GetDlgItem(hwndDlg, BOTAO_NAO);
case WM_CLOSE:
{
EndDialog(hwndDlg, 0);
}
return TRUE;
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case BOTAO_NAO: /// SE O BOTÃO "NÃO" FOR CLICADO
{
int x = rand()%300;
int y = rand()%125+50;